Commit fe4bb709 authored by Domanski, Marian M.'s avatar Domanski, Marian M.
Browse files

remove open file dialog before ras dialog

parent dbee0004
......@@ -454,17 +454,9 @@ class AppWindow(QMainWindow):
self.ui.groupBox_sim.setEnabled(True)
elif self.ui.radioButton_hecras.isChecked():
# File exploring dialog
dlg = QFileDialog()
file_path = dlg.getOpenFileName(
self, "Open HEC-RAS Project File", "",
"HEC-RAS Project File (*.prj)")[0]
self.ui.lineEdit_hecras.setText(file_path)
# Hecras dialog
self.ras_window = HecrasDialog(self)
self.ras_window.show()
self.ras_window.ui.lineEdit_project.setText(file_path)
self.ras_window.setup()
self.ui.label_sim_running.setStyleSheet('color: green;')
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment