mirror of
https://github.com/lubosz/overte.git
synced 2025-04-24 14:03:17 +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) {
|
||||
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();
|
||||
|
|
Loading…
Reference in a new issue