correct the text used to fugure out the button

button have text like &Ok &Yes
This way to detect what button was pressed of course is horrible and will have to be changed
CCBUG:265738
This commit is contained in:
Marco Martin 2011-02-09 19:17:44 +01:00
parent 9eca40ca38
commit ab8ec8f17a

View File

@ -645,16 +645,16 @@ void AppletPrivate::destroyMessageOverlay()
//find out if we're disappearing because of a button press
PushButton *button = qobject_cast<PushButton *>(q->sender());
if (button) {
if (button->text() == i18n("Ok")) {
if (button->text() == i18n("&Ok")) {
buttonCode = ButtonOk;
}
if (button->text() == i18n("Yes")) {
if (button->text() == i18n("&Yes")) {
buttonCode = ButtonYes;
}
if (button->text() == i18n("No")) {
if (button->text() == i18n("&No")) {
buttonCode = ButtonNo;
}
if (button->text() == i18n("Cancel")) {
if (button->text() == i18n("&Cancel")) {
buttonCode = ButtonCancel;
}