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:
parent
9eca40ca38
commit
ab8ec8f17a
@ -645,16 +645,16 @@ void AppletPrivate::destroyMessageOverlay()
|
|||||||
//find out if we're disappearing because of a button press
|
//find out if we're disappearing because of a button press
|
||||||
PushButton *button = qobject_cast<PushButton *>(q->sender());
|
PushButton *button = qobject_cast<PushButton *>(q->sender());
|
||||||
if (button) {
|
if (button) {
|
||||||
if (button->text() == i18n("Ok")) {
|
if (button->text() == i18n("&Ok")) {
|
||||||
buttonCode = ButtonOk;
|
buttonCode = ButtonOk;
|
||||||
}
|
}
|
||||||
if (button->text() == i18n("Yes")) {
|
if (button->text() == i18n("&Yes")) {
|
||||||
buttonCode = ButtonYes;
|
buttonCode = ButtonYes;
|
||||||
}
|
}
|
||||||
if (button->text() == i18n("No")) {
|
if (button->text() == i18n("&No")) {
|
||||||
buttonCode = ButtonNo;
|
buttonCode = ButtonNo;
|
||||||
}
|
}
|
||||||
if (button->text() == i18n("Cancel")) {
|
if (button->text() == i18n("&Cancel")) {
|
||||||
buttonCode = ButtonCancel;
|
buttonCode = ButtonCancel;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user