OpenToonz - An open-source full-featured 2D animation creation software
C
Changed QtDir.mkdir to QtDir.mkpath because it failed to create layers folder on Linux platform, also errors now close the progress bar and report the issue in a message dialog.
justburner97869c32f8f2
diff --git a/toonz/sources/toonz/ocaio.cpp b/toonz/sources/toonz/ocaio.cppindex a626077b4..75a0ea327 100644--- a/toonz/sources/toonz/ocaio.cpp+++ b/toonz/sources/toonz/ocaio.cpp@@ -483,12 +483,14 @@ void ExportOCACommand::execute() {QDir saveDir(ocafolder);if (!saveFile.open(QIODevice::WriteOnly)) {- qWarning("Couldn't open save file.");+ progressDialog->close();+ DVGui::error(QObject::tr("Unable to open OCA file for saving."));return;}if (!saveDir.exists()) {- if (!saveDir.mkdir(".")) {- qWarning("Couldn't create folder.");+ if (!saveDir.mkpath(".")) {+ progressDialog->close();+ DVGui::error(QObject::tr("Unable to create folder for saving layers."));return;}}@@ -498,6 +500,7 @@ void ExportOCACommand::execute() {ocaData.build(scene, xsheet, QString::fromStdString(fp.getName()), ocafolder,frameOffset, exrImageFmt, !rasterVecs);if (ocaData.isEmpty()) {+ progressDialog->close();DVGui::error(QObject::tr("No columns can be exported."));return;}