SVN: PLDSetupAssistant/PLDSetupAssistant.cpp

cactus cactus at pld-linux.org
Tue May 11 01:16:39 CEST 2010


Author: cactus
Date: Tue May 11 01:16:39 2010
New Revision: 11443

Modified:
   PLDSetupAssistant/PLDSetupAssistant.cpp
Log:
- add more services to list

Modified: PLDSetupAssistant/PLDSetupAssistant.cpp
==============================================================================
--- PLDSetupAssistant/PLDSetupAssistant.cpp	(original)
+++ PLDSetupAssistant/PLDSetupAssistant.cpp	Tue May 11 01:16:39 2010
@@ -120,7 +120,7 @@
     netWidget->setSizePolicy(QSizePolicy::Fixed,QSizePolicy::Fixed);
     
     netPage = addPage(netWidget, i18n("Step Three: Setup your network"));
-    
+
 }
 
 StartAssistant::~StartAssistant()
@@ -129,7 +129,10 @@
 
 KCMultiDialog* StartAssistant::kcmDialog(const QString lib, const QString name)
 {
-  foreach (const KService::Ptr service, KServiceTypeTrader::self()->query("KCModule")) {
+  KService::List serviceList = KServiceTypeTrader::self()->query("KCModule");
+  serviceList.append(KServiceTypeTrader::self()->query("SystemSettingsCategory"));
+
+  foreach (const KService::Ptr service, serviceList) {
     if (service->library() == lib && ( name.isEmpty() || service->desktopEntryName() == name))
     {
       kDebug() <<service->library() << service->desktopEntryName() << service->name();
@@ -143,7 +146,8 @@
       dlg->showButtonSeparator(false);
       return dlg;
     } else kDebug() <<service->library() << service->desktopEntryName() << service->name();
-}
+  }
+
   return 0;
 }
 


More information about the pld-cvs-commit mailing list