瀏覽代碼

Set the current plug-in operation before actually doing it.

Sascha Zelzer 13 年之前
父節點
當前提交
591ca14281
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Libs/PluginFramework/ctkPluginPrivate.cpp

+ 1 - 1
Libs/PluginFramework/ctkPluginPrivate.cpp

@@ -181,9 +181,9 @@ ctkPlugin::State ctkPluginPrivate::getUpdatedState()
       Locker sync(&operationLock);
       if (state == ctkPlugin::INSTALLED)
       {
+        operation.fetchAndStoreOrdered(RESOLVING);
         fwCtx->resolvePlugin(this);
         state = ctkPlugin::RESOLVED;
-        operation.fetchAndStoreOrdered(RESOLVING);
         // TODO plugin threading
         //bundleThread().bundleChanged(new BundleEvent(BundleEvent.RESOLVED, this));
         fwCtx->listeners.emitPluginChanged(ctkPluginEvent(ctkPluginEvent::RESOLVED, this->q_func()));