OpenToonz - An open-source full-featured 2D animation creation software
C
remove Are You Sure? when closing without unsaved content. (#733)
Jeremy Bullock9a3beb198e76
diff --git a/toonz/sources/toonz/iocommand.cpp b/toonz/sources/toonz/iocommand.cppindex b2bced1c8..0287f337c 100644--- a/toonz/sources/toonz/iocommand.cpp+++ b/toonz/sources/toonz/iocommand.cpp@@ -1242,17 +1242,17 @@ bool IoCmd::saveSceneIfNeeded(QString msg) {//--- If both the level and scene is clean, then open the quit confirmation// dialog- if (!isLevelOrSceneIsDirty && msg == "Quit") {- QString question("Are you sure ?");- int ret =- DVGui::MsgBox(question, QObject::tr("OK"), QObject::tr("Cancel"), 0);- if (ret == 0 || ret == 2) {- // cancel (or closed message box window)- return false;- } else if (ret == 1) {- // ok- }- }+ //if (!isLevelOrSceneIsDirty && msg == "Quit") {+ // QString question("Are you sure ?");+ // int ret =+ // DVGui::MsgBox(question, QObject::tr("OK"), QObject::tr("Cancel"), 0);+ // if (ret == 0 || ret == 2) {+ // // cancel (or closed message box window)+ // return false;+ // } else if (ret == 1) {+ // // ok+ // }+ //}RenderingSuspender suspender;