Skip to content

OpenToonz - An open-source full-featured 2D animation creation software

C

Fix save all issue setting wrong path on cancel save scene (#775)

Jeremy Bullock7e84f400f1c3
diff --git a/toonz/sources/toonz/iocommand.cpp b/toonz/sources/toonz/iocommand.cpp
index f1b35d0f3..00b9df177 100644
--- a/toonz/sources/toonz/iocommand.cpp
+++ b/toonz/sources/toonz/iocommand.cpp
@@ -1614,7 +1614,7 @@ bool IoCmd::saveAll() {
TApp *app = TApp::instance();
ToonzScene *scene = app->getCurrentScene()->getScene();
-
+ bool untitled = scene->isUntitled();
SceneResources resources(scene, 0);
resources.save(scene->getScenePath());
resources.updatePaths();
@@ -1622,7 +1622,7 @@ bool IoCmd::saveAll() {
// for update title bar
app->getCurrentLevel()->notifyLevelTitleChange();
app->getCurrentPalette()->notifyPaletteTitleChanged();
-
+ if (untitled) scene->setUntitled();
return result;
}