mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 08:46:37 -04:00
remove win32 importing hack, require target deck to be on disk
This commit is contained in:
parent
39ed7ff44e
commit
1365557930
2 changed files with 7 additions and 4 deletions
|
@ -194,9 +194,6 @@ you can enter it here. Use \\t to represent tab."""),
|
|||
self.file = None
|
||||
self.maybePreview()
|
||||
self.parent.deck.s.flush()
|
||||
if sys.platform.startswith("win32") and not self.parent.deck.path:
|
||||
# this fixes a strange bug in sqlite
|
||||
self.parent.deck.s.all("pragma integrity_check")
|
||||
self.parent.reset()
|
||||
self.modelChooser.deinit()
|
||||
|
||||
|
|
|
@ -1897,6 +1897,12 @@ You are currently cramming. Please close this deck first."""))
|
|||
return
|
||||
if self.deck is None:
|
||||
self.onNew()
|
||||
if not self.deck.path:
|
||||
self.showToolTip(_("""\
|
||||
Please choose a name for this deck. After saving, the importing \
|
||||
window will open."""))
|
||||
self.onSaveAs()
|
||||
if self.deck.path:
|
||||
ui.importing.ImportDialog(self)
|
||||
|
||||
def onExport(self):
|
||||
|
|
Loading…
Reference in a new issue