mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-23 18:32:50 +00:00
knotify: change the combo box index on KCM load
changing the combo box index changes the notification config widget Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
a011628b2a
commit
c516068d74
1 changed files with 6 additions and 1 deletions
|
@ -91,7 +91,12 @@ KCMNotification::~KCMNotification()
|
|||
|
||||
void KCMNotification::load()
|
||||
{
|
||||
m_notificationswidget->setNotification(s_kdenotification);
|
||||
const int kdeindex = m_notificationsbox->findData(s_kdenotification);
|
||||
if (kdeindex >= 0) {
|
||||
m_notificationsbox->setCurrentIndex(kdeindex);
|
||||
} else {
|
||||
kWarning() << "could not find the index of" << s_kdenotification;
|
||||
}
|
||||
emit changed(false);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue