update Display menu on unsuccesful selection

This commit is contained in:
Zach Pomerantz 2017-04-18 18:43:56 -04:00
parent e65079f826
commit c7a7fa90ec

View file

@ -6778,6 +6778,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();