summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPino Toscano <pino@kde.org>2016-11-23 20:40:35 (GMT)
committerPino Toscano <pino@kde.org>2016-11-23 20:40:35 (GMT)
commite7e47a6a53fcc89da696feeec4b8fd1d1f8d3fce (patch)
tree6c062b61aaf37897d066f84f2c85d1c0cb7b03a8
parentce6556a0d8b0fe8267444614b6ca7f5c31b0864f (diff)
Remove extra KGuiItem for "Cancel"
The default argument for the "cancel" button in KMessageBox::questionYesNoCancel is KStandardGuiItem::cancel(), so simply avoid specifying an own KGuiItem for the same element.
-rw-r--r--kerfuffle/extractiondialog.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/kerfuffle/extractiondialog.cpp b/kerfuffle/extractiondialog.cpp
index 9c6ae65..476129e 100644
--- a/kerfuffle/extractiondialog.cpp
+++ b/kerfuffle/extractiondialog.cpp
@@ -133,8 +133,7 @@ void ExtractionDialog::slotAccepted()
xi18nc("@info", "The folder <filename>%1</filename> already exists. Are you sure you want to extract here?", pathWithSubfolder),
i18n("Folder exists"),
KGuiItem(i18n("Extract here")),
- KGuiItem(i18n("Retry")),
- KGuiItem(i18n("Cancel")));
+ KGuiItem(i18n("Retry")));
if (overwrite == KMessageBox::No) {
// The user clicked Retry.