From c8e4b692a465f0d08280970aa94c4591fc01c792 Mon Sep 17 00:00:00 2001 From: spycrab Date: Wed, 27 Jun 2018 14:04:41 +0200 Subject: [PATCH] Qt/FilesystemWidget: Suggest default filename when exporting files --- Source/Core/DolphinQt2/Config/FilesystemWidget.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Source/Core/DolphinQt2/Config/FilesystemWidget.cpp b/Source/Core/DolphinQt2/Config/FilesystemWidget.cpp index b84a85eefd..4f8cb4e631 100644 --- a/Source/Core/DolphinQt2/Config/FilesystemWidget.cpp +++ b/Source/Core/DolphinQt2/Config/FilesystemWidget.cpp @@ -7,6 +7,7 @@ #include #include #include +#include #include #include #include @@ -244,7 +245,8 @@ void FilesystemWidget::ShowContextMenu(const QPoint&) break; case EntryType::File: AddAction(menu, tr("Extract File..."), this, [this, partition, path] { - auto dest = QFileDialog::getSaveFileName(this, tr("Save File to")); + auto dest = + QFileDialog::getSaveFileName(this, tr("Save File to"), QFileInfo(path).fileName()); if (!dest.isEmpty()) ExtractFile(partition, path, dest);