From c78c7ae67af2e480c10c05bba4b9defa9169daa6 Mon Sep 17 00:00:00 2001 From: Xavier Torret Date: Thu, 10 Dec 2020 19:10:35 +0100 Subject: [PATCH] Improve manage of enabled/disabled for mincut dialog tabs in function of mincut status --- actions/mincut.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/actions/mincut.py b/actions/mincut.py index a04be720f..36c3ace44 100644 --- a/actions/mincut.py +++ b/actions/mincut.py @@ -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 @@ -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)