Skip to content

Commit

Permalink
Improve manage of enabled/disabled for mincut dialog tabs in function…
Browse files Browse the repository at this point in the history
… of mincut status
  • Loading branch information
xtorret committed Dec 10, 2020
1 parent 5fea71f commit c78c7ae
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions actions/mincut.py
Original file line number Diff line number Diff line change
Expand Up @@ -738,8 +738,8 @@ def mincut_ok(self, result):
qtabwidget = self.dlg_mincut.findChild(QTabWidget, 'mainTab')
qtabwidget.widget(0).setEnabled(False) # Tab plan
qtabwidget.widget(1).setEnabled(True) # Tab Exec
qtabwidget.widget(2).setEnabled(False) # Tab Hydro
qtabwidget.widget(3).setEnabled(False) # Tab Log
qtabwidget.widget(2).setEnabled(True) # Tab hydro
qtabwidget.widget(3).setEnabled(True) # Tab Log

self.dlg_mincut.closeMainWin = False
self.dlg_mincut.mincutCanceled = True
Expand Down Expand Up @@ -1901,7 +1901,7 @@ def load_mincut(self, result_mincut_id):
body = self.create_body(extras=extras)
result = self.controller.get_json('gw_fct_getmincut', body)
self.add_layer.add_temp_layer(self.dlg_mincut, result['body']['data'], None, False, disable_tabs=False)
self.dlg_mincut.txt_infolog.setEnabled(False)
#self.dlg_mincut.txt_infolog.setEnabled(False)

# Manage location
utils_giswater.set_combo_itemData(self.dlg_mincut.address_add_muni, str(row['muni_id']), 0)
Expand Down

0 comments on commit c78c7ae

Please sign in to comment.