Opened 14 years ago
Closed 14 years ago
#2502 closed bug (fixed)
Range of bugs/enhancements for Random Selection tool
Reported by: | gislab | Owned by: | cfarmer |
---|---|---|---|
Priority: | minor: annoyance | Milestone: | Version 1.5.0 |
Component: | Python plugins and bindings | Version: | Trunk |
Keywords: | Cc: | dr, alexbruy | |
Must Fix for Release: | No | Platform: | All |
Platform Version: | Awaiting user input: | no |
Description
- Tool window is modal (can use other tools when tool window is open). Is that really necessary? (also the case for some other tools, like Random Selection within subsets
- Tool window is replicatable. Click 10 times on this tool, will have 10 tool windows.
- Finally, if the layer is switched off after opening tool window, throws an error (also the case with Random Sel within Subsets and related to modality):
An error has occured while executing Python code: Traceback (most recent call last): File "c:\OSGeo4w\apps\qgis-dev\python\plugins\fTools\tools\doRandom.py", line 45, in accept value = int(round((value / 100.0000), 4) * layer.featureCount()) AttributeError: 'NoneType' object has no attribute 'featureCount' Python version: 2.5.4 (r254:67916, Dec 23 2008, 15:10:54) [MSC v.1310 32 bit (Intel)] Python path: ['c:/OSGeo4w/apps/qgis-dev/./python', 'C:/Documents and Settings/DUBININ/.qgis//python', 'C:/Documents and Settings/DUBININ/.qgis//python/plugins', 'c:/OSGeo4w/apps/qgis-dev/./python/plugins', 'c:\\OSGeo4w\\apps\\gdal-16\\pymod', 'C:\\', 'C:\\WINDOWS\\system32\\python25.zip', 'c:\\OSGeo4w\\apps\\Python25\\DLLs', 'c:\\OSGeo4w\\apps\\Python25\\lib', 'c:\\OSGeo4w\\apps\\Python25\\lib\\plat-win', 'c:\\OSGeo4w\\apps\\Python25\\lib\\lib-tk', 'c:\\OSGeo4w\\apps\\qgis-dev\\bin', 'c:\\OSGeo4w\\apps\\Python25', 'c:\\OSGeo4w\\apps\\Python25\\lib\\site-packages', 'c:\\OSGeo4w\\apps\\Python25\\lib\\site-packages\\win32', 'c:\\OSGeo4w\\apps\\Python25\\lib\\site-packages\\win32\\lib', 'c:\\OSGeo4w\\apps\\Python25\\lib\\site-packages\\Pythonwin', 'c:\\OSGeo4w\\apps\\Python25\\lib\\site-packages\\wx-2.8-msw-unicode', 'c:\\OSGeo4w\\apps\\qgis-dev\\python\\plugins\\fTools\\tools', 'C:\\Documents and Settings\\DUBININ\\.qgis\\python\\plugins\\GdalTools\\tools', 'C:\\Documents and Settings\\DUBININ\\.qgis\\python\\plugins\\GdalTools']
Change History (2)
comment:1 by , 14 years ago
Component: | Vectors → Python plugins and bindings |
---|---|
Owner: | changed from | to
Platform: | Windows → All |
Note:
See TracTickets
for help on using tickets.
all confirmed under linux (ubuntu 9.10, qgis trunk) too.