From a93b6011f16dbb150c3701cec888f7b689c0fa6c Mon Sep 17 00:00:00 2001 From: Miika Turkia Date: Wed, 13 Nov 2013 21:08:05 +0200 Subject: [PATCH] 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 Signed-off-by: Dirk Hohndel --- qt-ui/divelistview.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;