Parcourir la 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á il y a 11 ans
Parent
commit
dce3cd2fb0
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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']: