[Kst] kdeextragear-2/kst/kst

Andrew Walker arwalker at sumusltd.com
Thu Apr 8 00:06:35 CEST 2004


CVS commit by arwalker: 

Ensure a newly created extension is added to the relevant list so we know how to delete it and can avoid creating it again


  M +4 -2      extensionmgr.cpp   1.3


--- kdeextragear-2/kst/kst/extensionmgr.cpp  #1.2:1.3
@@ -30,4 +30,5 @@
 #include <kservicetype.h>
 #include <qstringlist.h>
+#include <qmessagebox.h>
 
 KStaticDeleter<ExtensionMgr> sd;
@@ -98,4 +99,5 @@ void ExtensionMgr::loadExtension(const K
     connect(e, SIGNAL(unregister()), this, SLOT(unregister()));
     KstDebug::self()->log(i18n("Kst Extension %1 loaded.").arg(name));
+    doRegister(name,e);
   } else {
     KstDebug::self()->log(i18n("Error trying to load Kst extension %1.  Code=%2, \"%3\"").arg(name).arg(err).arg(err == KParts::ComponentFactory::ErrNoLibrary ? i18n("Library not found.") : KLibLoader::self()->lastErrorMessage()), KstDebug::Error);





More information about the Kst mailing list