don't double-connect the signals

svn path=/branches/KDE/4.4/kdelibs/; revision=1076950
This commit is contained in:
Aaron J. Seigo 2010-01-19 07:00:56 +00:00
parent c174905f76
commit b0145f01f3

View File

@ -1832,8 +1832,8 @@ void AppletPrivate::addGlobalShortcutsPage(KConfigDialog *dialog)
//TODO: Apply button does not correctly work for now, so do not show it
dialog->showButton(KDialog::Apply, false);
QObject::connect(dialog, SIGNAL(applyClicked()), q, SLOT(configDialogFinished()));
QObject::connect(dialog, SIGNAL(okClicked()), q, SLOT(configDialogFinished()));
QObject::connect(dialog, SIGNAL(applyClicked()), q, SLOT(configDialogFinished()), Qt::UniqueConnection);
QObject::connect(dialog, SIGNAL(okClicked()), q, SLOT(configDialogFinished()), Qt::UniqueConnection);
}
void AppletPrivate::addPublishPage(KConfigDialog *dialog)