summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt/Config/FilesystemWidget.cpp
diff options
context:
space:
mode:
authorLéo Lam <leo@leolam.fr>2021-10-13 01:48:31 +0200
committerGitHub <noreply@github.com>2021-10-13 01:48:31 +0200
commit0315fcf934c03a45114a7c710b1124b5d79b4679 (patch)
tree734c347be4eb1befbec4649d7d9f061d9d8e4fe9 /Source/Core/DolphinQt/Config/FilesystemWidget.cpp
parentc2d17f3f17e08e702ca15feb2a41fef6b2e8a54e (diff)
parent839b04014e8152f136943a2ba1cc474a9c43abef (diff)
Merge pull request #10155 from malleoz/toggle-hotkeys-on-qfiledialog
Disable hotkeys on static QFileDialog calls
Diffstat (limited to 'Source/Core/DolphinQt/Config/FilesystemWidget.cpp')
-rw-r--r--Source/Core/DolphinQt/Config/FilesystemWidget.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/Source/Core/DolphinQt/Config/FilesystemWidget.cpp b/Source/Core/DolphinQt/Config/FilesystemWidget.cpp
index b830a2e015..d9d053f0b1 100644
--- a/Source/Core/DolphinQt/Config/FilesystemWidget.cpp
+++ b/Source/Core/DolphinQt/Config/FilesystemWidget.cpp
@@ -5,7 +5,6 @@
#include <QApplication>
#include <QCoreApplication>
-#include <QFileDialog>
#include <QFileInfo>
#include <QHeaderView>
#include <QMenu>
@@ -23,6 +22,7 @@
#include "DiscIO/Filesystem.h"
#include "DiscIO/Volume.h"
+#include "DolphinQt/QtUtils/DolphinFileDialog.h"
#include "DolphinQt/QtUtils/ModalMessageBox.h"
#include "DolphinQt/QtUtils/ParallelProgressDialog.h"
#include "DolphinQt/Resources.h"
@@ -211,7 +211,8 @@ void FilesystemWidget::PopulateDirectory(int partition_id, QStandardItem* root,
QString FilesystemWidget::SelectFolder()
{
- return QFileDialog::getExistingDirectory(this, QObject::tr("Choose the folder to extract to"));
+ return DolphinFileDialog::getExistingDirectory(this,
+ QObject::tr("Choose the folder to extract to"));
}
void FilesystemWidget::ShowContextMenu(const QPoint&)
@@ -296,7 +297,7 @@ void FilesystemWidget::ShowContextMenu(const QPoint&)
case EntryType::File:
menu->addAction(tr("Extract File..."), this, [this, partition, path] {
auto dest =
- QFileDialog::getSaveFileName(this, tr("Save File to"), QFileInfo(path).fileName());
+ DolphinFileDialog::getSaveFileName(this, tr("Save File to"), QFileInfo(path).fileName());
if (!dest.isEmpty())
ExtractFile(partition, path, dest);