diff --git a/toonz/sources/toonz/exportxsheetpdf.cpp b/toonz/sources/toonz/exportxsheetpdf.cpp index d19d23c..7290b6b 100644 --- a/toonz/sources/toonz/exportxsheetpdf.cpp +++ b/toonz/sources/toonz/exportxsheetpdf.cpp @@ -2169,7 +2169,7 @@ void ExportXsheetPdfPopup::updatePreview() { void ExportXsheetPdfPopup::onExport() { ToonzScene* scene = TApp::instance()->getCurrentScene()->getScene(); - if (m_sceneNameEdit->text().isEmpty()) { + if (m_fileNameFld->text().isEmpty()) { DVGui::MsgBoxInPopup(DVGui::WARNING, tr("Please specify the file name.")); return; } @@ -2239,7 +2239,7 @@ void ExportXsheetPdfPopup::onExport() { void ExportXsheetPdfPopup::onExportPNG() { ToonzScene* scene = TApp::instance()->getCurrentScene()->getScene(); - if (m_sceneNameEdit->text().isEmpty()) { + if (m_fileNameFld->text().isEmpty()) { DVGui::MsgBoxInPopup(DVGui::WARNING, tr("Please specify the file name.")); return; }