Skip to content
Permalink
Browse files

Allow interacting with the render window while configuring controllers

WindowModal allows alt+tabing to the render window, but prohibits interaction
with parent windows (controller settings window and the main dolphin window).
  • Loading branch information...
Pokechu22 committed May 9, 2019
1 parent e7bc868 commit 7c80fcde53d852c05e91ab7b130f78bdabd12f83
Showing with 8 additions and 2 deletions.
  1. +8 −2 Source/Core/DolphinQt/Config/ControllersWindow.cpp
@@ -426,7 +426,10 @@ void ControllersWindow::OnGCPadConfigure()
return;
}

MappingWindow(this, type, static_cast<int>(index)).exec();
MappingWindow* window = new MappingWindow(this, type, static_cast<int>(index));
window->setAttribute(Qt::WA_DeleteOnClose, true);
window->setWindowModality(Qt::WindowModality::WindowModal);
window->show();
}

void ControllersWindow::OnWiimoteConfigure()
@@ -451,7 +454,10 @@ void ControllersWindow::OnWiimoteConfigure()
return;
}

MappingWindow(this, type, static_cast<int>(index)).exec();
MappingWindow* window = new MappingWindow(this, type, static_cast<int>(index));
window->setAttribute(Qt::WA_DeleteOnClose, true);
window->setWindowModality(Qt::WindowModality::WindowModal);
window->show();
}

void ControllersWindow::LoadSettings()

0 comments on commit 7c80fcd

Please sign in to comment.
You can’t perform that action at this time.