mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 22:42:25 -04:00
possible fix for ok+cancel crash on windows
This commit is contained in:
parent
38636a3f33
commit
ba8108c54c
1 changed files with 1 additions and 1 deletions
|
@ -1394,6 +1394,7 @@ Any cards mapped to nothing will be deleted. \
|
||||||
If a note has no remaining cards, it will be lost. \
|
If a note has no remaining cards, it will be lost. \
|
||||||
Are you sure you want to continue?""")):
|
Are you sure you want to continue?""")):
|
||||||
return
|
return
|
||||||
|
QDialog.accept(self)
|
||||||
self.browser.mw.checkpoint(_("Change Note Type"))
|
self.browser.mw.checkpoint(_("Change Note Type"))
|
||||||
b = self.browser
|
b = self.browser
|
||||||
b.mw.progress.start()
|
b.mw.progress.start()
|
||||||
|
@ -1405,7 +1406,6 @@ Are you sure you want to continue?""")):
|
||||||
b.mw.progress.finish()
|
b.mw.progress.finish()
|
||||||
b.mw.requireReset()
|
b.mw.requireReset()
|
||||||
self.cleanup()
|
self.cleanup()
|
||||||
return QDialog.accept(self)
|
|
||||||
|
|
||||||
def onHelp(self):
|
def onHelp(self):
|
||||||
openHelp("browsermisc")
|
openHelp("browsermisc")
|
||||||
|
|
Loading…
Reference in a new issue