Update Display menu on unsuccesful selection
Showing the changes to interface/src/Application.cpp (1 of 1 file). Show all
Unified · Split
| @@ -6782,6 +6782,13 @@ void Application::updateDisplayMode() { · 6781 unmodified lines | ||
| 6782 | 6782 | if (!active) { |
| 6783 | 6783 | qFatal("Failed to activate fallback plugin"); |
| 6784 | 6784 | } |
| 6785 | + | |
| 6786 | + // We've changed the selection - it should be reflected in the menu | |
| 6787 | + QAction* action = menu->getActionForOption(newDisplayPlugin->getName()); | |
| 6788 | + if (!action) { | |
| 6789 | + qFatal("Failed to find activated plugin"); | |
| 6790 | + } | |
| 6791 | + action->setChecked(true); | |
| 6785 | 6792 | } |
| 6786 | 6793 | |
| 6787 | 6794 | _offscreenContext->makeCurrent(); |