Use for predefined filename string its Label value

This commit is contained in:
Kuzma30
2024-05-25 14:21:06 +00:00
committed by sliptonic
parent 9d0320198f
commit bb4ef6dae2

View File

@@ -1210,7 +1210,7 @@ bool Document::saveAs()
QString exe = qApp->applicationName();
QString fn = FileDialog::getSaveFileName(getMainWindow(), QObject::tr("Save %1 Document").arg(exe),
QString::fromUtf8(getDocument()->FileName.getValue()),
QString::fromUtf8(getDocument()->Label.getValue()),
QString::fromLatin1("%1 %2 (*.FCStd)").arg(exe, QObject::tr("Document")));
if (!fn.isEmpty()) {