Explorar el Código

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

Sascha Zelzer hace 13 años
padre
commit
591ca14281
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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()));