Переглянути джерело

Don't change the autostart setting when starting dependent plugins.

Sascha Zelzer 14 роки тому
батько
коміт
2ddb2c43c5
1 змінених файлів з 3 додано та 2 видалено
  1. 3 2
      Libs/PluginFramework/ctkPluginPrivate.cpp

+ 3 - 2
Libs/PluginFramework/ctkPluginPrivate.cpp

@@ -397,8 +397,9 @@ void ctkPluginPrivate::startDependencies()
     }
 
     // We take the first plugin in the list (highest version number)
-    // Immediately start the dependencies (no lazy activation)
-    pl.front()->start(0);
+    // Immediately start the dependencies (no lazy activation) but do not
+    // change the autostart setting of the plugin.
+    pl.front()->start(ctkPlugin::START_TRANSIENT);
   }
 }