Explorar o código

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á %!s(int64=11) %!d(string=hai) anos
pai
achega
dce3cd2fb0
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      gui/wxpython/mapswipe/frame.py

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

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