Permalink
Browse files

fix for #32, up to 0.7

  • Loading branch information...
1 parent abc5399 commit 05fa38a5ba1ffc519154e12b3da85606898b4157 @anitagraser committed Dec 1, 2012
Showing with 11 additions and 8 deletions.
  1. +1 −1 __init__.py
  2. +1 −1 metadata.txt
  3. +3 −3 timemanager.py
  4. +6 −3 timemanagerguicontrol.py
View
@@ -8,7 +8,7 @@ def description():
return "The aim of TimeManager plugin for QGIS is to provide comfortable browsing through temporal geodata. A dock widget provides a time slider and a configuration dialog for your layers to manage."
def version():
- return "Version 0.6"
+ return "Version 0.7"
def qgisMinimumVersion():
return '1.7.0'
View
@@ -1,7 +1,7 @@
[general]
name=TimeManager
description=Working with temporal data
-version=Version 0.6
+version=Version 0.7
qgisMinimumVersion=1.7.0
authorName=Anita Graser
icon=icon.png
View
@@ -22,10 +22,10 @@
class timemanager:
""" plugin information """
name = "TimeManagerPlugin"
- longName = "TimeManager Plugin for QGIS >= 1.6"
+ longName = "TimeManager Plugin for QGIS >= 1.7"
description = "Working with temporal vector data"
- version = "Version 0.6" # update in __init__.py too!
- qgisMinimumVersion = '1.6.0'
+ version = "Version 0.7" # update in __init__.py too!
+ qgisMinimumVersion = '1.7.0'
author = "Anita Graser"
pluginUrl = "https://github.com/anitagraser/TimeManager"
View
@@ -274,9 +274,12 @@ def getLayerAttributes(self,comboIndex):
except:
#QMessageBox.information(self.iface.mainWindow(),'Test Output','Error at: self.mapLayers[self.layerIds[comboIndex]]')
return
- provider=layer.dataProvider()
- try: # this function will crash on raster layers
- fieldmap=provider.fields()
+ try:
+ provider=layer.dataProvider() # this will crash on OpenLayers layers
+ except AttributeError:
+ return
+ try:
+ fieldmap=provider.fields() # this function will crash on raster layers
except:
#QMessageBox.information(self.iface.mainWindow(),'Test Output','Error at: provider.fields()')
return

0 comments on commit 05fa38a

Please sign in to comment.