Commit 2455faf6 authored by Kurt Hindenburg's avatar Kurt Hindenburg
Browse files

Add a "Do not ask again" option to close session dialog

This is called on Menu->Close Sesssion and right-click tab->Close Tab

BUG: 405481
parent 2de43394
......@@ -885,6 +885,7 @@ void SessionController::renameSession()
}
}
// This is called upon Menu->Close Sesssion and right-click on tab->Close Tab
bool SessionController::confirmClose() const
{
if (_session->isForegroundProcessActive()) {
......@@ -907,7 +908,12 @@ bool SessionController::confirmClose() const
" Are you sure you want to close it?", title);
}
int result = KMessageBox::warningYesNo(_view->window(), question, i18n("Confirm Close"));
int result = KMessageBox::warningYesNo(_view->window(),
question,
i18n("Confirm Close"),
KStandardGuiItem::yes(),
KStandardGuiItem::no(),
QStringLiteral("CloseSingleTab"));
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