aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Miika Turkia <miika.turkia@gmail.com>2013-11-13 21:08:05 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-11-14 07:17:26 +0900
commita93b6011f16dbb150c3701cec888f7b689c0fa6c (patch)
tree8602ff95d8c3c42a6406732092b6df7cf980a204
parent179a5f6f33fc4635cdb65e757370f267973a5e88 (diff)
downloadsubsurface-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.cpp2
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;