From 1614d4b4091d3802e200a336221b5c044c258efd Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Wed, 6 Jun 2018 16:37:22 +0200 Subject: [PATCH] use .esgraf48 as default file extension --- source/mainwindow.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/source/mainwindow.cpp b/source/mainwindow.cpp index 24cee63..9157aec 100644 --- a/source/mainwindow.cpp +++ b/source/mainwindow.cpp @@ -41,7 +41,8 @@ void MainWindow::newFile() void MainWindow::openFile() { - QString filename = QFileDialog::getOpenFileName(this); + QString filename = QFileDialog::getOpenFileName(this, "Open file", + "", "ESGRAF 4-8 (*.esgraf48)"); if (filename.isEmpty()) { return; @@ -78,7 +79,8 @@ void MainWindow::saveFile() void MainWindow::saveFileAs() { - QString filename = QFileDialog::getSaveFileName(this); + QString filename = QFileDialog::getSaveFileName(this, "Save file", "", + "ESGRAF 4-8 (*.esgraf48)"); if (filename.isEmpty()) { return;