Skip to content

Commit

Permalink
fix for #32, up to 0.7
Browse files Browse the repository at this point in the history
  • Loading branch information
anitagraser committed Dec 1, 2012
1 parent abc5399 commit 05fa38a
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion __init__.py
Expand Up @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion metadata.txt
@@ -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
Expand Down
6 changes: 3 additions & 3 deletions timemanager.py
Expand Up @@ -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"

Expand Down
9 changes: 6 additions & 3 deletions timemanagerguicontrol.py
Expand Up @@ -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
Expand Down

0 comments on commit 05fa38a

Please sign in to comment.