Commit 91b7c1a0 authored by Friedrich W. H. Kossebau's avatar Friedrich W. H. Kossebau
Browse files

Session close confirm dialog: use action terms instead of Yes/No buttons

Yes/No buttons in dialogs are discouraged (not only) by KDE HIG in favour
of actions terms.
parent f4b84a10
Pipeline #202804 passed with stage
in 3 minutes and 50 seconds
......@@ -1070,8 +1070,8 @@ bool SessionController::confirmClose() const
int result = KMessageBox::warningYesNo(view()->window(),
question,
i18n("Confirm Close"),
KStandardGuiItem::yes(),
KStandardGuiItem::no(),
KGuiItem(i18nc("@action:button", "Close Program"), QStringLiteral("application-exit")),
KStandardGuiItem::cancel(),
QStringLiteral("CloseSingleTab"));
return result == KMessageBox::Yes;
}
......@@ -1102,7 +1102,11 @@ bool SessionController::confirmForceClose() const
title);
}
int result = KMessageBox::warningYesNo(view()->window(), question, i18n("Confirm Close"));
int result = KMessageBox::warningYesNo(view()->window(),
question,
i18n("Confirm Close"),
KGuiItem(i18nc("@action:button", "Kill Program"), QStringLiteral("application-exit")),
KStandardGuiItem::cancel());
return result == KMessageBox::Yes;
}
return true;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment