Permalink
Browse files

Merge pull request #7174 from spycrab/qt_fs_export

Qt/FilesystemWidget: Suggest default filename when exporting files
  • Loading branch information...
spycrab committed Jun 28, 2018
2 parents 317de3c + c8e4b69 commit 6700cc4234546f1fb80f4bdb42d2568c2cb3043a
Showing with 3 additions and 1 deletion.
  1. +3 −1 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);

0 comments on commit 6700cc4

Please sign in to comment.