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

Viewspace close dialog: avoid Yes/No buttons

Yes/No buttons are discouraged by KDE HIG
parent 28417fdc
Pipeline #199109 passed with stage
in 11 minutes and 4 seconds
......@@ -987,7 +987,11 @@ void KateViewManager::removeViewSpace(KateViewSpace *viewspace)
}
if (viewspace->hasWidgets()) {
int ret = KMessageBox::warningYesNo(this, i18n("This view may have unsaved work. Do you really want to close it?"));
int ret = KMessageBox::warningYesNo(this,
i18n("This view may have unsaved work. Do you really want to close it?"),
{},
KStandardGuiItem::close(),
KStandardGuiItem::cancel());
if (ret != KMessageBox::Yes) {
return;
}
......
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