diff options
| author | spycrab <spycrab@users.noreply.github.com> | 2018-06-27 14:04:41 +0200 |
|---|---|---|
| committer | spycrab <spycrab@users.noreply.github.com> | 2018-06-27 14:04:41 +0200 |
| commit | c8e4b692a465f0d08280970aa94c4591fc01c792 (patch) | |
| tree | 0a4f84f5fa334ae9d9d230f4fa76d2b06b56d2e7 /Source | |
| parent | beeb6754d2c653c05ab5ed7def0abbfa8fb0e9c4 (diff) | |
Qt/FilesystemWidget: Suggest default filename when exporting files
Diffstat (limited to 'Source')
| -rw-r--r-- | Source/Core/DolphinQt2/Config/FilesystemWidget.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
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 <QApplication> #include <QCoreApplication> #include <QFileDialog> +#include <QFileInfo> #include <QHeaderView> #include <QMenu> #include <QMessageBox> @@ -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); |
