Explorar o código

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

Sascha Zelzer %!s(int64=13) %!d(string=hai) anos
pai
achega
591ca14281
Modificáronse 1 ficheiros con 1 adicións e 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()));