瀏覽代碼

wxGUI: reports error from db.databases

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@60461 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 11 年之前
父節點
當前提交
f089bb9f62
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      gui/wxpython/gui_core/gselect.py

+ 1 - 1
gui/wxpython/gui_core/gselect.py

@@ -1860,7 +1860,7 @@ class GdalSelect(wx.Panel):
         self.dbWidgets['featType'].Enable(enableFeatType)
         if showChoice:
             # try to get list of PG databases
-            dbNames = RunCommand('db.databases', quiet=True, read=True,
+            dbNames = RunCommand('db.databases', parent=self, quiet=True, read=True,
                                  driver='pg').splitlines()
             if dbNames is not None:
                 self.dbWidgets['choice'].SetItems(sorted(dbNames))