Merge pull request #10241 from zzmp/fix/display-fail

Update Display menu on unsuccesful selection
This commit is contained in:
Zach Pomerantz 2017-04-20 12:04:51 -04:00 committed by GitHub
commit b77917b8d1

View file

@ -6782,6 +6782,13 @@ void Application::updateDisplayMode() {
if (!active) {
qFatal("Failed to activate fallback plugin");
}
// We've changed the selection - it should be reflected in the menu
QAction* action = menu->getActionForOption(newDisplayPlugin->getName());
if (!action) {
qFatal("Failed to find activated plugin");
}
action->setChecked(true);
}
_offscreenContext->makeCurrent();