Label save-file-dialog button "Save" instead of "Open"

This commit is contained in:
Michael Mandl 2019-01-29 21:19:05 +01:00
parent 2d88f4c08f
commit f42d7eafb0

View file

@ -117,6 +117,7 @@ void MainWindow::saveFile()
void MainWindow::saveFileAs()
{
QFileDialog saveFilenameDialog(this);
saveFilenameDialog.setAcceptMode(QFileDialog::AcceptSave);
saveFilenameDialog.setDefaultSuffix("esgraf48");
saveFilenameDialog.setFileMode(QFileDialog::AnyFile);
saveFilenameDialog.setNameFilter("ESGRAF 4-8 (*.esgraf48)");