OpenToonz - An open-source full-featured 2D animation creation software
C
fix a bug where level in xsheet gets replaced when cancelling saving
pojieniebc5b96b1321e
diff --git a/toonz/sources/toonz/iocommand.cpp b/toonz/sources/toonz/iocommand.cppindex 558c55e2c..057a66d5e 100644--- a/toonz/sources/toonz/iocommand.cpp+++ b/toonz/sources/toonz/iocommand.cpp@@ -1531,7 +1531,11 @@ bool IoCmd::saveLevel(const TFilePath &path) {if (realPath.getType() == "")realPath = TFilePath(realPath.getWideString() + ::to_wstring(dotts + ext));- saveLevel(realPath, sl, false);+ bool ret = saveLevel(realPath, sl, false);+ if(!ret){ //save level failed+ return false;+ }+RecentFiles::instance()->addFilePath(toQString(realPath), RecentFiles::Level);TApp::instance()