[GRASS-SVN] r62332 - in grass/branches/releasebranch_7_0: . gui/wxpython/dbmgr
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Oct 21 13:39:49 PDT 2014
Author: martinl
Date: 2014-10-21 13:39:49 -0700 (Tue, 21 Oct 2014)
New Revision: 62332
Modified:
grass/branches/releasebranch_7_0/
grass/branches/releasebranch_7_0/gui/wxpython/dbmgr/base.py
Log:
wxGUI:dbmgr: select item automatically when WHERE statement is given
(merge r62331 from trunk)
Property changes on: grass/branches/releasebranch_7_0
___________________________________________________________________
Modified: svn:mergeinfo
- /grass/trunk:61280,62141,62144,62269,62271,62276,62288,62300,62305,62310,62325,62328-62329
+ /grass/trunk:61280,62141,62144,62269,62271,62276,62288,62300,62305,62310,62325,62328-62329,62331
Modified: grass/branches/releasebranch_7_0/gui/wxpython/dbmgr/base.py
===================================================================
--- grass/branches/releasebranch_7_0/gui/wxpython/dbmgr/base.py 2014-10-21 20:33:32 UTC (rev 62331)
+++ grass/branches/releasebranch_7_0/gui/wxpython/dbmgr/base.py 2014-10-21 20:39:49 UTC (rev 62332)
@@ -252,7 +252,7 @@
return
self.AddDataRow(i, record, columns, keyId)
-
+
i += 1
if i >= 100000:
self.log.write(_("Viewing limit: 100000 records."))
@@ -260,6 +260,14 @@
self.SetItemCount(i)
+ if where:
+ item = -1
+ while True:
+ item = self.GetNextItem(item)
+ if item == -1:
+ break
+ self.SetItemState(item, wx.LIST_STATE_SELECTED, wx.LIST_STATE_SELECTED)
+
i = 0
for col in columns:
width = self.columns[col]['length'] * 6 # FIXME
More information about the grass-commit
mailing list