Warn on failing level save all

This commit is contained in:
manongjohn 2019-11-19 21:24:26 -05:00
parent b224639e1c
commit 69182e4246

View file

@ -234,8 +234,13 @@ void SceneLevel::save() {
// imageBuilder path refresh.
m_sl->setPath(fp, false);
} else {
m_sl->save(actualFp, oldActualPath);
try {
m_sl->save(actualFp, oldActualPath);
} catch (...) {
DVGui::warning(
QObject::tr("Can't save") +
QString::fromStdWString(L": " + actualFp.getLevelNameW()));
}
if ((actualFp.getType() == "tlv" || actualFp.getType() == "pli") &&
actualFp != oldActualPath && m_oldRefImgPath != TFilePath()) {
// Devo preoccuparmi dell'eventuale livello colormodel