summaryrefslogtreecommitdiff
path: root/src/ui.py
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2011-11-10 02:09:06 +0100
committerTreeki <treeki@gmail.com>2011-11-10 02:09:06 +0100
commit51f915a11c4d84a68d94a2d20adce7c4ead5de9f (patch)
tree31d0383379a8f9096de3e92b22609f0750efca21 /src/ui.py
parent58397adbf19eb20d1359fa591a147ec7117821e6 (diff)
downloadkoopatlas-51f915a11c4d84a68d94a2d20adce7c4ead5de9f.tar.gz
koopatlas-51f915a11c4d84a68d94a2d20adce7c4ead5de9f.zip
fixes to make tilesets work for both me and Tempus
Diffstat (limited to '')
-rw-r--r--src/ui.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ui.py b/src/ui.py
index 0ea63b3..f933457 100644
--- a/src/ui.py
+++ b/src/ui.py
@@ -246,7 +246,10 @@ class KPMainWindow(QtGui.QMainWindow):
@QtCore.pyqtSlot()
def updateObjectSelector(self):
- tileset = KPTileset.loadFromArc('/Users/Tempus/Dropbox/NEWERsmbw/Test3.arc')
+ try:
+ tileset = KPTileset.loadFromArc('/Users/Tempus/Dropbox/NEWERsmbw/Test3.arc')
+ except IOError:
+ tileset = KPTileset.loadFromArc('/home/me/Dropbox/NEWERsmbw/Test3.arc')
self.objectSelector.setModel(tileset.getModel())
tileset.getModel().view = self.objectSelector