Commit 534ef93d authored by Jonathan Marten's avatar Jonathan Marten
Browse files

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

It's the text of the checkbox, not the config key.
parent 21293007
......@@ -522,7 +522,15 @@ int main(int argc, char *argv[])
buttonBox->button(QDialogButtonBox::Ok)->setFocus();
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);
const auto ret = QDialogButtonBox::StandardButton(dialog.exec());
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