Skip to content

Commit

Permalink
Small hack to get our Pendulum window to load last.
Browse files Browse the repository at this point in the history
  • Loading branch information
agarny committed Jun 27, 2017
1 parent bc9cbc5 commit 2ef92e7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/plugins/pluginmanager.cpp
Expand Up @@ -177,12 +177,18 @@ PluginManager::PluginManager(const bool &pGuiMode) :
// Experiment view depends on it...

static const QRegularExpression PendulumWindowPluginRegEx = QRegularExpression(".*PendulumWindow.*");
static const QRegularExpression SimulationExperimentViewPluginRegEx = QRegularExpression(".*SimulationExperiment.*");

int pendulumWindowPluginIndex = pluginFileNames.indexOf(PendulumWindowPluginRegEx);

if (pendulumWindowPluginIndex != -1)
pluginFileNames.move(pendulumWindowPluginIndex, pluginFileNames.count()-1);

int simulationExperimentViewPluginIndex = pluginFileNames.indexOf(SimulationExperimentViewPluginRegEx);

if (simulationExperimentViewPluginIndex != -1)
pluginFileNames.move(simulationExperimentViewPluginIndex, pluginFileNames.count()-1);

// Deal with all the plugins we need and want

foreach (const QString &pluginFileName, pluginFileNames) {
Expand Down

0 comments on commit 2ef92e7

Please sign in to comment.