Skip to content

Commit

Permalink
wxGUI/dbmgr: fix hit 'Refresh' button if vector map doesn't have any …
Browse files Browse the repository at this point in the history
…layers (#1371)
  • Loading branch information
tmszi committed Feb 20, 2021
1 parent 1c865e7 commit 4af8f38
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gui/wxpython/dbmgr/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -2012,6 +2012,8 @@ def OnDeleteSelected(self, event):

def OnApplySqlStatement(self, event):
"""Apply simple/advanced sql statement"""
if not self.layerPage:
return
keyColumn = -1 # index of key column
listWin = self.FindWindowById(self.layerPage[self.selLayer]['data'])
sql = None
Expand Down

0 comments on commit 4af8f38

Please sign in to comment.