Showing the changes to interface/src/PluginContainerProxy.cpp (1 of 10 files). Show all
Unified · Split
| @@ -147,15 +147,3 @@ void PluginContainerProxy::showDisplayPluginsTools() { · 146 unmodified lines | |||
| 147 | QGLWidget* PluginContainerProxy::getPrimarySurface() { | 147 | QGLWidget* PluginContainerProxy::getPrimarySurface() { |
| 148 | return qApp->_glWidget; | 148 | return qApp->_glWidget; |
| 149 | } | 149 | } |
| 150 | |||
| 151 | void Application::setActiveDisplayPlugin(const QString& pluginName) { | ||
| 152 | auto menu = Menu::getInstance(); | ||
| 153 | foreach(DisplayPluginPointer displayPlugin, PluginManager::getInstance()->getDisplayPlugins()) { | ||
| 154 | QString name = displayPlugin->getName(); | ||
| 155 | QAction* action = menu->getActionForOption(name); | ||
| 156 | if (pluginName == name) { | ||
| 157 | action->setChecked(true); | ||
| 158 | } | ||
| 159 | } | ||
| 160 | updateDisplayMode(); | ||
| 161 | } | ||