Skip to content

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

C

Add Error Message if Export faild

Abel Youcac86a95e066
diff --git a/toonz/sources/toonz/exportalllevelspopup.cpp b/toonz/sources/toonz/exportalllevelspopup.cpp
index 9ee9c6a3f..f77c0e310 100644
--- a/toonz/sources/toonz/exportalllevelspopup.cpp
+++ b/toonz/sources/toonz/exportalllevelspopup.cpp
@@ -253,8 +253,11 @@ bool ExportAllLevelsPopup::execute() {
ret;
if (ret) {
++level_exported; // count exported levels
- } else
- return ret;
+ } else {
+ DVGui::error(
+ tr("Export failed,please delete exported files and try again."));
+ return ret;
+ }
outputLevels.pop_back();
}
}