Commit f60dd6f4 authored by Jonathan Marten's avatar Jonathan Marten Committed by Kai Uwe Broulik
Browse files

Correct the 'ask' parameter to KMessageBox::createKMessageBox()

It's the text of the checkbox, not the config key.

(cherry picked from commit 534ef93d)
parent 83e61c91
...@@ -522,7 +522,15 @@ int main(int argc, char *argv[]) ...@@ -522,7 +522,15 @@ int main(int argc, char *argv[])
buttonBox->button(QDialogButtonBox::Ok)->setFocus(); buttonBox->button(QDialogButtonBox::Ok)->setFocus();
break; break;
} }
(void)KMessageBox::createKMessageBox(&dialog, buttonBox, icon, text, {}, dontagain, nullptr, options, details); (void)KMessageBox::createKMessageBox(&dialog, // dialog
buttonBox, // buttons
icon, // icon
text, // text
{}, // strlist
i18n("Do not ask again"), // ask
nullptr, // checkboxReturn
options, // options
details); // details
Utils::handleXGeometry(&dialog); Utils::handleXGeometry(&dialog);
const auto ret = QDialogButtonBox::StandardButton(dialog.exec()); const auto ret = QDialogButtonBox::StandardButton(dialog.exec());
if (!dontagain.isEmpty()) { if (!dontagain.isEmpty()) {
Markdown is supported
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