Selaa lähdekoodia

Emit a signal if a plugin has been installed.

Sascha Zelzer 14 vuotta sitten
vanhempi
commit
f68952d2ec
1 muutettua tiedostoa jossa 1 lisäystä ja 2 poistoa
  1. 1 2
      Libs/PluginFramework/ctkPlugins.cpp

+ 1 - 2
Libs/PluginFramework/ctkPlugins.cpp

@@ -110,8 +110,7 @@
         ctkPlugin* res = new ctkPlugin(fwCtx, pa);
         plugins.insert(location.toString(), res);
 
-        //TODO send event
-        //fwCtx.listeners.bundleChanged(new BundleEvent(BundleEvent.INSTALLED, b));
+        fwCtx->listeners.emitPluginChanged(ctkPluginEvent(ctkPluginEvent::INSTALLED, res));
 
         return res;
       }