Enable buttons correctly at startup.

svn path=/trunk/KDE/kdebase/workspace/; revision=745636
This commit is contained in:
Luboš Luňák 2007-12-06 17:23:13 +00:00
parent e21a0778fd
commit f751d02384

View file

@ -168,13 +168,11 @@ 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);
rules_listbox->setCurrentItem( NULL );
activeChanged();
}
}
void KCMRulesList::save()
{