Skip to content

Commit

Permalink
wxGUI/gui_core: fix imagery create/edit group dialog deselect all maps (
Browse files Browse the repository at this point in the history
  • Loading branch information
tmszi authored and ninsbl committed Oct 26, 2022
1 parent 0801d86 commit 6d5b0cf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gui/wxpython/gui_core/dialogs.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
StaticBox,
StaticText,
TextCtrl,
ListBox,
)


Expand Down Expand Up @@ -870,7 +871,7 @@ def _createDialogBody(self):

sizer = wx.BoxSizer(wx.HORIZONTAL)

self.gLayerBox = wx.ListBox(
self.gLayerBox = ListBox(
parent=self.gListPanel,
id=wx.ID_ANY,
size=(-1, 150),
Expand Down
4 changes: 4 additions & 0 deletions gui/wxpython/gui_core/wrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -909,6 +909,10 @@ def SetToolTip(self, tip):
else:
wx.ListBox.SetToolTipString(self, tip)

def DeselectAll(self):
for i in range(self.GetCount()):
self.Deselect(i)


class HyperlinkCtrl(HyperlinkCtrl_):
"""Wrapper around HyperlinkCtrl to have more control
Expand Down

0 comments on commit 6d5b0cf

Please sign in to comment.