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