[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    playground/base/plasma/plasmate
From:       Richard Dale <Richard_Dale () tipitina ! demon ! co ! uk>
Date:       2010-02-12 22:05:40
Message-ID: 1266012340.819987.28567.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1089325 by rdale:

* Enable Ruby data engines as the api for them is stable and works fine


 M  +11 -2     startpage.cpp  


--- trunk/playground/base/plasma/plasmate/startpage.cpp #1089324:1089325
@@ -136,14 +136,23 @@
 void StartPage::validateProjectType(const QModelIndex &sender)
 {
 
-    if ((sender.row() == 1) ||
-        (sender.row() == 2)) {
+    if (sender.row() == 1) {
         ui->radioButtonJs->setEnabled(false);
         // gotta explicitly setEnabled to true in case it
         // was falsed before!
         ui->radioButtonPy->setEnabled(true);
         // also check this radio to prevent any disabled radios from
         // being checked due to previous setting!
+        ui->radioButtonRb->setEnabled(true);
+        ui->newProjectButton->setEnabled(true); // in case previously falsed
+        
+    } else if (sender.row() == 2) {
+        ui->radioButtonJs->setEnabled(false);
+        // gotta explicitly setEnabled to true in case it
+        // was falsed before!
+        ui->radioButtonPy->setEnabled(true);
+        // also check this radio to prevent any disabled radios from
+        // being checked due to previous setting!
         ui->radioButtonPy->setChecked(true);
         ui->radioButtonRb->setEnabled(false);
         ui->newProjectButton->setEnabled(true); // in case previously falsed
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic