浏览代码

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);
   }
 }