From 4010242dfb1ab9d511fb51030713ff95d22efa3f Mon Sep 17 00:00:00 2001 From: manongjohn <19245851+manongjohn@users.noreply.github.com> Date: Sat, 3 Dec 2022 12:22:20 -0500 Subject: [PATCH] Fix output filename changing to dot --- toonz/sources/toonz/outputsettingspopup.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toonz/sources/toonz/outputsettingspopup.cpp b/toonz/sources/toonz/outputsettingspopup.cpp index df706942..a66c3284 100644 --- a/toonz/sources/toonz/outputsettingspopup.cpp +++ b/toonz/sources/toonz/outputsettingspopup.cpp @@ -1042,7 +1042,7 @@ void OutputSettingsPopup::updateField() { QString name = path.withoutParentDir().getQString(); name = QString::fromStdString(name.toStdString().substr( 0, name.length() - path.getDottedType().length())); - if (name.isEmpty()) + if (name.isEmpty() || name == ".") name = QString::fromStdString(scene->getScenePath().getName()); m_saveInFileFld->setPath(toQString(path.getParentDir())); m_fileNameFld->setText(name);