diff --git a/src/widgets/jobuidelegate.cpp b/src/widgets/jobuidelegate.cpp --- a/src/widgets/jobuidelegate.cpp +++ b/src/widgets/jobuidelegate.cpp @@ -224,35 +224,55 @@ const KMessageBox::Options options(KMessageBox::Notify | KMessageBox::WindowModal); switch (deletionType) { case Delete: - result = KMessageBox::warningContinueCancelList( - widget, - xi18ncp("@info", "Do you really want to permanently delete this item?This action cannot be undone.", "Do you really want to permanently delete these %1 items?This action cannot be undone.", prettyList.count()), - prettyList, - i18n("Delete Files"), - KStandardGuiItem::del(), - KStandardGuiItem::cancel(), - keyName, options); + if (prettyList.count() == 1) { + result = KMessageBox::warningContinueCancel( + widget, + xi18nc("@info", "Do you really want to permanently delete this item?%1This action cannot be undone.", prettyList.first()), + QString(), + KStandardGuiItem::del(), + KStandardGuiItem::cancel(), + keyName, options); + } else { + result = KMessageBox::warningContinueCancelList( + widget, + xi18nc("@info", "Do you really want to permanently delete these %1 items?This action cannot be undone.", prettyList.count()), + prettyList, + i18n("Delete Files"), + KStandardGuiItem::del(), + KStandardGuiItem::cancel(), + keyName, options); + } break; case EmptyTrash: result = KMessageBox::warningContinueCancel( widget, - xi18nc("@info", "Do you want to permanently delete all items from Trash?This action cannot be undone."), + xi18nc("@info", "Do you want to permanently delete all items from the Trash?This action cannot be undone."), QString(), KGuiItem(i18nc("@action:button", "Empty Trash"), QIcon::fromTheme(QStringLiteral("user-trash"))), KStandardGuiItem::cancel(), keyName, options); break; case Trash: default: - result = KMessageBox::warningContinueCancelList( - widget, - i18np("Do you really want to move this item to the trash?", "Do you really want to move these %1 items to the trash?", prettyList.count()), - prettyList, - i18n("Move to Trash"), - KGuiItem(i18nc("Verb", "&Trash"), QStringLiteral("user-trash")), - KStandardGuiItem::cancel(), - keyName, options); + if (prettyList.count() == 1) { + result = KMessageBox::warningContinueCancel( + widget, + xi18nc("@info", "Do you really want to move this item to the Trash?%1", prettyList.first()), + QString(), + KGuiItem(i18n("Move to Trash"), QStringLiteral("user-trash")), + KStandardGuiItem::cancel(), + keyName, options); + } else { + result = KMessageBox::warningContinueCancelList( + widget, + i18n("Do you really want to move these %1 items to the Trash?", prettyList.count()), + prettyList, + i18n("Move to Trash"), + KGuiItem(i18n("Move to Trash"), QStringLiteral("user-trash")), + KStandardGuiItem::cancel(), + keyName, options); + } } if (!keyName.isEmpty()) { // Check kmessagebox setting... erase & copy to konquerorrc.