summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPino Toscano <pino@kde.org>2016-11-23 20:49:19 (GMT)
committerPino Toscano <pino@kde.org>2016-11-23 20:49:19 (GMT)
commitdecfd47d0334b8419764b95122306440a646d320 (patch)
treebcafe5008e735af5352b21294520fa6cb3198469
parente7e47a6a53fcc89da696feeec4b8fd1d1f8d3fce (diff)
Use KStandardGuiItem::overwrite()
... instead of manually building the KGuiItem for it.
-rw-r--r--part/part.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/part/part.cpp b/part/part.cpp
index 991f121..f1adf21 100644
--- a/part/part.cpp
+++ b/part/part.cpp
@@ -802,7 +802,7 @@ bool Part::confirmAndDelete(const QString &targetFile)
"The archive <filename>%1</filename> already exists. Do you wish to overwrite it?",
targetInfo.fileName()),
i18nc("@title:window", "File Exists"),
- KGuiItem(i18nc("@action:button", "Overwrite")),
+ KStandardGuiItem::overwrite(),
KStandardGuiItem::cancel());
if (buttonCode != KMessageBox::Yes || !targetInfo.isWritable()) {