SVN: PLDSetupAssistant/PLDSetupAssistant.cpp

cactus cactus at pld-linux.org
Tue May 11 19:18:53 CEST 2010


Author: cactus
Date: Tue May 11 19:18:53 2010
New Revision: 11457

Modified:
   PLDSetupAssistant/PLDSetupAssistant.cpp
Log:
- add simple page skip if no kcm module available

Modified: PLDSetupAssistant/PLDSetupAssistant.cpp
==============================================================================
--- PLDSetupAssistant/PLDSetupAssistant.cpp	(original)
+++ PLDSetupAssistant/PLDSetupAssistant.cpp	Tue May 11 19:18:53 2010
@@ -83,14 +83,17 @@
     // Keyboard
     keyboardDialog = kcmDialog("kcm_keyboard_layout", "keyboard_layout");
     keyboardPage = addPage(kcmLayout(keyboardDialog), i18n("Step One: Choose your keyboard layout"));
+    if (!keyboardDialog) setAppropriate(keyboardPage, false);
 
     // Date and Time
     clockDialog = kcmDialog("kcm_clock", "clock");
     clockPage = addPage(kcmLayout(clockDialog), i18n("Step Two: Choose your timezone and setup the clock"));
+    if (!clockDialog) setAppropriate(clockPage, false);
     
     // Network
     netDialog = kcmDialog("kcm_networkmanagement", "kcm_networkmanagement");
     netPage = addPage(kcmLayout(netDialog), i18n("Step Three: Setup your network"));
+    if (!netDialog) setAppropriate(netPage, false);
     
     // Finish
     finishDialog = finish();


More information about the pld-cvs-commit mailing list