mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -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.deckchooser
|
||||
|
||||
|
||||
class ChangeMap(QDialog):
|
||||
def __init__(self, mw, model, current):
|
||||
QDialog.__init__(self, mw, Qt.Window)
|
||||
|
@ -338,6 +337,8 @@ with a different browser.""")
|
|||
msg = _("""\
|
||||
Invalid file. Please restore from backup.""")
|
||||
showWarning(msg)
|
||||
elif "invalidTempFolder" in err:
|
||||
showWarning(mw.errorHandler.tempFolderMsg())
|
||||
elif "readonly" in err:
|
||||
showWarning(_("""\
|
||||
Unable to import from a read-only file."""))
|
||||
|
|
Loading…
Reference in a new issue