Merge pull request #102 from chkr-private/preferences-fixes

RFC: avoid exception on exit
This commit is contained in:
Damien Elmes 2015-04-29 20:20:31 +10:00
commit 7131b15953

View file

@ -29,6 +29,9 @@ class Preferences(QDialog):
self.show() self.show()
def accept(self): def accept(self):
# avoid exception if main window is already closed
if not self.mw.col:
return
self.updateCollection() self.updateCollection()
self.updateNetwork() self.updateNetwork()
self.updateBackup() self.updateBackup()