From f751d023847dab83176f1d804a47af7b7815b9d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Thu, 6 Dec 2007 17:23:13 +0000 Subject: [PATCH] Enable buttons correctly at startup. svn path=/trunk/KDE/kdebase/workspace/; revision=745636 --- kcmkwin/kwinrules/ruleslist.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/kcmkwin/kwinrules/ruleslist.cpp b/kcmkwin/kwinrules/ruleslist.cpp index 535bdce02b..8156e47318 100644 --- a/kcmkwin/kwinrules/ruleslist.cpp +++ b/kcmkwin/kwinrules/ruleslist.cpp @@ -168,12 +168,10 @@ void KCMRulesList::load() rules_listbox->addItem( rule->description ); } if( rules.count() > 0 ) - rules_listbox->item(0)->setSelected( true ); + rules_listbox->setCurrentItem( rules_listbox->item( 0 )); else - { - rules_listbox->setCurrentItem(0L); - activeChanged(); - } + rules_listbox->setCurrentItem( NULL ); + activeChanged(); } void KCMRulesList::save()