From e56c7cddd7a23b612cd491592c4ac355ca1bac61 Mon Sep 17 00:00:00 2001 From: Nicklas Larsson Date: Tue, 30 Jul 2024 20:26:40 +0200 Subject: [PATCH] gui: fix broken if-else statement in EnableLongHelp() (#4106) Fixes a regression introduced by https://github.com/OSGeo/grass/commit/f99780c11f8d4d1633e469fb32da2b6c75852b4f Closes #4091 --- gui/wxpython/gui_core/toolbars.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/gui/wxpython/gui_core/toolbars.py b/gui/wxpython/gui_core/toolbars.py index 47c00fd36fc..d47a850a6a5 100644 --- a/gui/wxpython/gui_core/toolbars.py +++ b/gui/wxpython/gui_core/toolbars.py @@ -174,9 +174,10 @@ def EnableLongHelp(self, enable): if tool[0][0] == "": # separator continue internal_label = tool[0][0] - elif tool[0] == "": # separator - continue - internal_label = tool[0] + else: + if tool[0] == "": # separator + continue + internal_label = tool[0] label = vars(self.widget)[internal_label] if enable: