summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt/MainWindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Core/DolphinQt/MainWindow.cpp')
-rw-r--r--Source/Core/DolphinQt/MainWindow.cpp14
1 files changed, 8 insertions, 6 deletions
diff --git a/Source/Core/DolphinQt/MainWindow.cpp b/Source/Core/DolphinQt/MainWindow.cpp
index 10c2f1d0b3..2e85856cb1 100644
--- a/Source/Core/DolphinQt/MainWindow.cpp
+++ b/Source/Core/DolphinQt/MainWindow.cpp
@@ -937,13 +937,15 @@ void MainWindow::ShowAboutDialog()
void MainWindow::ShowHotkeyDialog()
{
- auto* hotkey_window = new MappingWindow(this, MappingWindow::Type::MAPPING_HOTKEYS, 0);
-
- InstallHotkeyFilter(hotkey_window);
+ if (!m_hotkey_window)
+ {
+ m_hotkey_window = new MappingWindow(this, MappingWindow::Type::MAPPING_HOTKEYS, 0);
+ InstallHotkeyFilter(m_hotkey_window);
+ }
- hotkey_window->show();
- hotkey_window->raise();
- hotkey_window->activateWindow();
+ m_hotkey_window->show();
+ m_hotkey_window->raise();
+ m_hotkey_window->activateWindow();
}
void MainWindow::ShowGraphicsWindow()