Kaynağa Gözat

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

Sascha Zelzer 14 yıl önce
ebeveyn
işleme
2ddb2c43c5
1 değiştirilmiş dosya ile 3 ekleme ve 2 silme
  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);
   }
 }