mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -04:00
catch another invalidTempFolder msg
This commit is contained in:
parent
3b20de173f
commit
b97f913ba1
1 changed files with 2 additions and 1 deletions
|
@ -17,7 +17,6 @@ import aqt.forms
|
||||||
import aqt.modelchooser
|
import aqt.modelchooser
|
||||||
import aqt.deckchooser
|
import aqt.deckchooser
|
||||||
|
|
||||||
|
|
||||||
class ChangeMap(QDialog):
|
class ChangeMap(QDialog):
|
||||||
def __init__(self, mw, model, current):
|
def __init__(self, mw, model, current):
|
||||||
QDialog.__init__(self, mw, Qt.Window)
|
QDialog.__init__(self, mw, Qt.Window)
|
||||||
|
@ -338,6 +337,8 @@ with a different browser.""")
|
||||||
msg = _("""\
|
msg = _("""\
|
||||||
Invalid file. Please restore from backup.""")
|
Invalid file. Please restore from backup.""")
|
||||||
showWarning(msg)
|
showWarning(msg)
|
||||||
|
elif "invalidTempFolder" in err:
|
||||||
|
showWarning(mw.errorHandler.tempFolderMsg())
|
||||||
elif "readonly" in err:
|
elif "readonly" in err:
|
||||||
showWarning(_("""\
|
showWarning(_("""\
|
||||||
Unable to import from a read-only file."""))
|
Unable to import from a read-only file."""))
|
||||||
|
|
Loading…
Reference in a new issue