mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 20:28:56 +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
|
@ -6,7 +6,6 @@
|
|||
#include <QCheckBox>
|
||||
#include <QDialogButtonBox>
|
||||
#include <QEvent>
|
||||
#include <QFileDialog>
|
||||
#include <QGroupBox>
|
||||
#include <QHBoxLayout>
|
||||
#include <QIcon>
|
||||
|
@ -27,6 +26,7 @@
|
|||
#include "Core/FifoPlayer/FifoRecorder.h"
|
||||
|
||||
#include "DolphinQt/FIFO/FIFOAnalyzer.h"
|
||||
#include "DolphinQt/QtUtils/DolphinFileDialog.h"
|
||||
#include "DolphinQt/QtUtils/ModalMessageBox.h"
|
||||
#include "DolphinQt/QtUtils/QueueOnObject.h"
|
||||
#include "DolphinQt/Resources.h"
|
||||
|
@ -189,8 +189,8 @@ void FIFOPlayerWindow::ConnectWidgets()
|
|||
|
||||
void FIFOPlayerWindow::LoadRecording()
|
||||
{
|
||||
QString path = QFileDialog::getOpenFileName(this, tr("Open FIFO log"), QString(),
|
||||
tr("Dolphin FIFO Log (*.dff)"));
|
||||
QString path = DolphinFileDialog::getOpenFileName(this, tr("Open FIFO log"), QString(),
|
||||
tr("Dolphin FIFO Log (*.dff)"));
|
||||
|
||||
if (path.isEmpty())
|
||||
return;
|
||||
|
@ -200,8 +200,8 @@ void FIFOPlayerWindow::LoadRecording()
|
|||
|
||||
void FIFOPlayerWindow::SaveRecording()
|
||||
{
|
||||
QString path = QFileDialog::getSaveFileName(this, tr("Save FIFO log"), QString(),
|
||||
tr("Dolphin FIFO Log (*.dff)"));
|
||||
QString path = DolphinFileDialog::getSaveFileName(this, tr("Save FIFO log"), QString(),
|
||||
tr("Dolphin FIFO Log (*.dff)"));
|
||||
|
||||
if (path.isEmpty())
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue