catch another invalidTempFolder msg

This commit is contained in:
Damien Elmes 2014-02-03 01:51:51 +09:00
parent 3b20de173f
commit b97f913ba1

View file

@ -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."""))