mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 05:17:24 +02:00
update Display menu on unsuccesful selection
This commit is contained in:
parent
e65079f826
commit
c7a7fa90ec
1 changed files with 7 additions and 0 deletions
|
@ -6778,6 +6778,13 @@ void Application::updateDisplayMode() {
|
||||||
if (!active) {
|
if (!active) {
|
||||||
qFatal("Failed to activate fallback plugin");
|
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();
|
_offscreenContext->makeCurrent();
|
||||||
|
|
Loading…
Reference in a new issue