mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
Qt/MainWindow: Maintain pointer to hotkey window
Prevents multiple hotkey windows from being opened.
This commit is contained in:
@ -937,13 +937,15 @@ void MainWindow::ShowAboutDialog()
|
||||
|
||||
void MainWindow::ShowHotkeyDialog()
|
||||
{
|
||||
auto* hotkey_window = new MappingWindow(this, MappingWindow::Type::MAPPING_HOTKEYS, 0);
|
||||
if (!m_hotkey_window)
|
||||
{
|
||||
m_hotkey_window = new MappingWindow(this, MappingWindow::Type::MAPPING_HOTKEYS, 0);
|
||||
InstallHotkeyFilter(m_hotkey_window);
|
||||
}
|
||||
|
||||
InstallHotkeyFilter(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()
|
||||
|
Reference in New Issue
Block a user