Commit dff9d494 authored by Laurent Montel's avatar Laurent Montel
Browse files

Use discard

parent 076de7b6
Pipeline #252017 passed with stage
in 12 minutes and 15 seconds
......@@ -168,7 +168,7 @@ bool SieveEditorPageWidget::needToSaveScript()
i18n("Script '%1' is new. Do you want to save it?", mCurrentURL.fileName()),
i18n("Save Script"),
KStandardGuiItem::save(),
KStandardGuiItem::cancel());
KStandardGuiItem::discard());
#else
const int resultQuestion = KMessageBox::warningYesNoCancel(this, i18n("Script '%1' is new. Do you want to save it?", mCurrentURL.fileName()));
#endif
......@@ -189,7 +189,7 @@ bool SieveEditorPageWidget::needToSaveScript()
i18n("Script '%1' was changed. Do you want to save it ?", mCurrentURL.fileName()),
i18n("Save Script"),
KStandardGuiItem::save(),
KStandardGuiItem::cancel());
KStandardGuiItem::discard());
#else
const int resultQuestion = KMessageBox::warningYesNoCancel(this, i18n("Script '%1' was changed. Do you want to save it ?", mCurrentURL.fileName()));
#endif
......
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