mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 13:20:27 -06: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:
@ -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;
|
||||
|
Reference in New Issue
Block a user