diff options
| author | sowens99 <seanowens@comcast.net> | 2021-10-09 22:28:59 -0400 |
|---|---|---|
| committer | sowens99 <seanowens@comcast.net> | 2021-10-09 22:43:56 -0400 |
| commit | 839b04014e8152f136943a2ba1cc474a9c43abef (patch) | |
| tree | 835a3926a00f1131d11d997d57861fb80bffcd93 /Source/Core/DolphinQt/Config/InfoWidget.cpp | |
| parent | d90b30ca251146c478759190d9b206f38c3b70d3 (diff) | |
Add wrapper function to disable hotkeys for QFileDialog
Previously, if you have "Hotkeys Require Window Focus" disabled, you could repeatedly use the "Open" hotkey, for example, to stack File Open windows over top of each other over and over.
This commit allows the hotkey manager to disable/enable on QFileDialog creation and destruction.
Diffstat (limited to 'Source/Core/DolphinQt/Config/InfoWidget.cpp')
| -rw-r--r-- | Source/Core/DolphinQt/Config/InfoWidget.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Core/DolphinQt/Config/InfoWidget.cpp b/Source/Core/DolphinQt/Config/InfoWidget.cpp index f7a5a0248c..b7574dd913 100644 --- a/Source/Core/DolphinQt/Config/InfoWidget.cpp +++ b/Source/Core/DolphinQt/Config/InfoWidget.cpp @@ -4,7 +4,6 @@ #include <QComboBox> #include <QCryptographicHash> #include <QDir> -#include <QFileDialog> #include <QFormLayout> #include <QGroupBox> #include <QLabel> @@ -19,6 +18,7 @@ #include "DiscIO/Volume.h" #include "DolphinQt/Config/InfoWidget.h" +#include "DolphinQt/QtUtils/DolphinFileDialog.h" #include "DolphinQt/QtUtils/ImageConverter.h" #include "UICommon/UICommon.h" @@ -190,8 +190,8 @@ QWidget* InfoWidget::CreateBannerGraphic(const QPixmap& image) void InfoWidget::SaveBanner() { - QString path = QFileDialog::getSaveFileName(this, tr("Select a File"), QDir::currentPath(), - tr("PNG image file (*.png);; All Files (*)")); + QString path = DolphinFileDialog::getSaveFileName(this, tr("Select a File"), QDir::currentPath(), + tr("PNG image file (*.png);; All Files (*)")); ToQPixmap(m_game.GetBannerImage()).save(path, "PNG"); } |
