[PATCH] Add file naming dialog for save as

Tomaz Canabrava tcanabrava at kde.org
Wed Nov 13 12:18:47 UTC 2013


Nice Catch. :)


On Wed, Nov 13, 2013 at 5:08 PM, Miika Turkia <miika.turkia at gmail.com>wrote:

> 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 at gmail.com>
> ---
>  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 f33d709..34df44b 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;
>
> --
> 1.8.3.2
>
> _______________________________________________
> subsurface mailing list
> subsurface at hohndel.org
> http://lists.hohndel.org/cgi-bin/mailman/listinfo/subsurface
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.hohndel.org/pipermail/subsurface/attachments/20131113/245d259a/attachment.html>


More information about the subsurface mailing list