Use default geometry if no geometry was saved.
This commit is contained in:
parent
96747c9d58
commit
9568be3d2a
@ -50,7 +50,7 @@ class MainWindow(QWidget):
|
|||||||
try:
|
try:
|
||||||
geom = b64decode(config.state['geometry']['mainwindow'],
|
geom = b64decode(config.state['geometry']['mainwindow'],
|
||||||
validate=True)
|
validate=True)
|
||||||
except binascii.Error:
|
except (KeyError, binascii.Error):
|
||||||
self._set_default_geometry()
|
self._set_default_geometry()
|
||||||
else:
|
else:
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user