OpenToonz - An open-source full-featured 2D animation creation software
C
Change the Export Button behavior to autofill namefield when File name is empty
Abel Youa5c5095392e8
diff --git a/toonz/sources/toonz/exportalllevelspopup.cpp b/toonz/sources/toonz/exportalllevelspopup.cppindex 991a3efeb..50b9c7199 100644--- a/toonz/sources/toonz/exportalllevelspopup.cpp+++ b/toonz/sources/toonz/exportalllevelspopup.cpp@@ -323,6 +323,7 @@ bool ExportAllLevelsPopup::execute() {// Start to exportbool ret = true;+ // export rest at one timeif (isexport_all) {TXshSimpleLevel *sl;std::wstring folderName;@@ -352,7 +353,8 @@ bool ExportAllLevelsPopup::execute() {else {// File Name Checkif (m_nameField->text().isEmpty()) {- DVGui::error(tr("Please input the File name!"));+ m_nameField->setText(QString::fromStdWString(+ level_to_foldername.find(outputLevels.back()->getName())->second));return false;}if (!isValidFileName(QString::fromStdString(fp.getName()))) {