Skip to content

Commit

Permalink
Use for predefined filename string its Label value
Browse files Browse the repository at this point in the history
  • Loading branch information
KuzemkoA committed May 25, 2024
1 parent 502207d commit 698d2cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Gui/Document.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down

0 comments on commit 698d2cd

Please sign in to comment.