From c7a7fa90ec370d8350f58ecce858e6b8ae0dec5f Mon Sep 17 00:00:00 2001 From: Zach Pomerantz Date: Tue, 18 Apr 2017 18:43:56 -0400 Subject: [PATCH] update Display menu on unsuccesful selection --- interface/src/Application.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/interface/src/Application.cpp b/interface/src/Application.cpp index c6cd185034..9a8203f644 100644 --- a/interface/src/Application.cpp +++ b/interface/src/Application.cpp @@ -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();