Commit bfdfdcd5 authored by Friedrich W. H. Kossebau's avatar Friedrich W. H. Kossebau Committed by Christoph Cullmann
Browse files

Compiler explorer: avoid Yes/No buttons

Yes/No buttons are discouraged by KDE HIG
parent 0d411a92
Pipeline #199111 canceled with stage
......@@ -123,7 +123,8 @@ CEWidget::~CEWidget()
bool CEWidget::shouldClose()
{
int ret = KMessageBox::warningYesNo(this, i18n("Do you really want to close %1?", windowTitle()));
int ret =
KMessageBox::warningYesNo(this, i18n("Do you really want to close %1?", windowTitle()), {}, KStandardGuiItem::close(), KStandardGuiItem::cancel());
return ret == KMessageBox::Yes;
}
......
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