Skip to content

Commit

Permalink
gui: fix broken if-else statement in EnableLongHelp() (OSGeo#4106)
Browse files Browse the repository at this point in the history
Fixes a regression introduced by
OSGeo@f99780c

Closes OSGeo#4091
  • Loading branch information
nilason authored Jul 30, 2024
1 parent 0983373 commit e56c7cd
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions gui/wxpython/gui_core/toolbars.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit e56c7cd

Please sign in to comment.