Commit 20b9078c authored by Pino Toscano's avatar Pino Toscano

Use KStandardGuiItem::overwrite()

... instead of creating the KGuiItem from scratch
parent f1d98a56
......@@ -333,7 +333,7 @@ bool kpDocument::savePixmapToFile (const QImage &pixmap,
"Do you want to overwrite it?",
kpUrlFormatter::PrettyFilename (url)),
QString(),
KGuiItem(i18n ("Overwrite")));
KStandardGuiItem::overwrite ());
if (result != KMessageBox::Continue)
{
......
......@@ -296,7 +296,7 @@ kpColorCollection::saveAs(const QUrl &url, bool showOverwritePrompt,
"Do you want to overwrite it?",
kpUrlFormatter::PrettyFilename (url)),
QString (),
KGuiItem (i18n ("Overwrite")));
KStandardGuiItem::overwrite ());
if (result != KMessageBox::Continue)
return false;
}
......
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