diff options
author | Miika Turkia <miika.turkia@gmail.com> | 2013-11-13 21:08:05 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-11-14 07:17:26 +0900 |
commit | a93b6011f16dbb150c3701cec888f7b689c0fa6c (patch) | |
tree | 8602ff95d8c3c42a6406732092b6df7cf980a204 | |
parent | 179a5f6f33fc4635cdb65e757370f267973a5e88 (diff) | |
download | subsurface-a93b6011f16dbb150c3701cec888f7b689c0fa6c.tar.gz |
Add file naming dialog for save as
When right clicking a dive on the divelist a dialog for selecting a dive
was opened. However, Save As requires a getSaveFileName dialog so that
user can give a new file name as well as selecting an old file to
overwrite.
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r-- | qt-ui/divelistview.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-ui/divelistview.cpp b/qt-ui/divelistview.cpp index f33d709e9..34df44bf1 100644 --- a/qt-ui/divelistview.cpp +++ b/qt-ui/divelistview.cpp @@ -508,7 +508,7 @@ void DiveListView::saveSelectedDivesAs() } settings.endGroup(); - QString fileName = QFileDialog::getOpenFileName(mainWindow(), tr("Save Dives As..."), QDir::homePath()); + QString fileName = QFileDialog::getSaveFileName(mainWindow(), tr("Save Dives As..."), QDir::homePath()); if (fileName.isEmpty()) return; |