Browse Source

wxGUI/mapswipe: fix launching from menu when maps are selected in lmgr

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@58317 15284696-431f-4ddb-bdfa-cd5b030d7da7
Anna Petrášová 11 years ago
parent
commit
dce3cd2fb0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      gui/wxpython/mapswipe/frame.py

+ 1 - 1
gui/wxpython/mapswipe/frame.py

@@ -592,7 +592,7 @@ class SwipeMapFrame(DoubleMapFrame):
         self.SendSizeEvent()
 
     def SetRasterNames(self):
-        if self._inputDialog.IsSimpleMode():
+        if not self._inputDialog or self._inputDialog.IsSimpleMode():
             if self.rasters['first']:
                 self.GetFirstWindow().SetRasterNameText(self.rasters['first'], 101)
             if self.rasters['second']: