History

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

Update Display menu on unsuccesful selection

Zach Pomerantz committed 9 years ago

Commit b77917b2 parents 50456f7 c7a7fa91 file · +7 −0Browse files

Showing the changes to interface/src/Application.cpp (1 of 1 file). Show all

Unified · Split

interface/src/Application.cpp+7−0
@@ -6782,6 +6782,13 @@ void Application::updateDisplayMode() { · 6781 unmodified lines
67826782 if (!active) {
67836783 qFatal("Failed to activate fallback plugin");
67846784 }
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);
67856792 }
67866793
67876794 _offscreenContext->makeCurrent();

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t