Use for predefined filename string its Label value
This commit is contained in:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user