Command Save As

A forum for research and development of the user interface of FreeCAD
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
mcemp
Posts: 15
Joined: Wed Sep 25, 2019 8:38 am

Command Save As

Post by mcemp »

Command Save As in Freecad offers nothing. Every "normal" program (Notepad3,Firefox,..) offers the same name, that is possible to edit.
I am sure, it will save a lot of work.
chrisb
Veteran
Posts: 53945
Joined: Tue Mar 17, 2015 9:14 am

Re: Command Save As

Post by chrisb »

Seems to be OS dependent. On MacOS I get the old name as default.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
User avatar
yorik
Founder
Posts: 13640
Joined: Tue Feb 17, 2009 9:16 pm
Location: Brussels
Contact:

Re: Command Save As

Post by yorik »

Inded on Linux the field is empty too...
The code is correct, though. Gui/Document.cpp L1041:

Code: Select all

    QString fn = FileDialog::getSaveFileName(getMainWindow(), QObject::tr("Save %1 Document").arg(exe), 
        QString::fromUtf8(getDocument()->FileName.getValue()), 
        QString::fromLatin1("%1 %2 (*.FCStd)").arg(exe).arg(QObject::tr("Document")));
Post Reply