mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -04:00
Merge pull request #102 from chkr-private/preferences-fixes
RFC: avoid exception on exit
This commit is contained in:
commit
7131b15953
1 changed files with 3 additions and 0 deletions
|
@ -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()
|
||||||
|
|
Loading…
Reference in a new issue