Use default geometry if no geometry was saved.

This commit is contained in:
Florian Bruhin 2014-02-18 18:38:48 +01:00
parent 96747c9d58
commit 9568be3d2a

View File

@ -50,7 +50,7 @@ class MainWindow(QWidget):
try:
geom = b64decode(config.state['geometry']['mainwindow'],
validate=True)
except binascii.Error:
except (KeyError, binascii.Error):
self._set_default_geometry()
else:
try: