mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 14:25:27 +00:00
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>
This commit is contained in:
parent
179a5f6f33
commit
a93b6011f1
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue