mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 19:58:53 +00:00
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.
This commit is contained in:
parent
d90b30ca25
commit
839b04014e
16 changed files with 175 additions and 81 deletions
|
@ -5,7 +5,6 @@
|
|||
|
||||
#include <QComboBox>
|
||||
#include <QDialogButtonBox>
|
||||
#include <QFileDialog>
|
||||
#include <QGridLayout>
|
||||
#include <QLabel>
|
||||
#include <QPushButton>
|
||||
|
@ -19,6 +18,8 @@
|
|||
#include "Core/HW/GCMemcard/GCMemcard.h"
|
||||
#include "Core/HW/Sram.h"
|
||||
|
||||
#include "DolphinQt/QtUtils/DolphinFileDialog.h"
|
||||
|
||||
GCMemcardCreateNewDialog::GCMemcardCreateNewDialog(QWidget* parent) : QDialog(parent)
|
||||
{
|
||||
m_combobox_size = new QComboBox();
|
||||
|
@ -69,7 +70,7 @@ bool GCMemcardCreateNewDialog::CreateCard()
|
|||
const u16 size = static_cast<u16>(m_combobox_size->currentData().toInt());
|
||||
const bool is_shift_jis = m_radio_shiftjis->isChecked();
|
||||
|
||||
const QString path = QFileDialog::getSaveFileName(
|
||||
const QString path = DolphinFileDialog::getSaveFileName(
|
||||
this, tr("Create New Memory Card"), QString::fromStdString(File::GetUserPath(D_GCUSER_IDX)),
|
||||
tr("GameCube Memory Cards (*.raw *.gcp)") + QStringLiteral(";;") + tr("All Files (*)"));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue