瀏覽代碼

wxGUI/vdigit: show message when no action defined

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@50319 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 13 年之前
父節點
當前提交
0912eef09c
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5 0
      gui/wxpython/vdigit/mapwindow.py

+ 5 - 0
gui/wxpython/vdigit/mapwindow.py

@@ -507,7 +507,12 @@ class VDigitWindow(BufferedWindow):
             return
         
         action = self.toolbar.GetAction()
+        
         if not action:
+            GMessage(parent = self,
+                     message = _("Nothing to do. "
+                                 "Choose appropriate tool from digitizer toolbar."))
+            event.Skip()
             return
         
         if action not in ("moveVertex",