Browse Source

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

Sascha Zelzer 13 years ago
parent
commit
591ca14281
1 changed files with 1 additions and 1 deletions
  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()));