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()