Преглед изворни кода

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 година
родитељ
комит
dce3cd2fb0
1 измењених фајлова са 1 додато и 1 уклоњено
  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']: