From 429427767bc6340ac8aafea3736b575ddcf186b4 Mon Sep 17 00:00:00 2001 From: Kai Uwe Broulik Date: Tue, 14 Mar 2017 22:42:07 +0100 Subject: Cleanup Places Panel context menus Differential Revision: https://phabricator.kde.org/D4498 --- src/panels/places/placesitemmodel.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/panels/places/placesitemmodel.cpp') diff --git a/src/panels/places/placesitemmodel.cpp b/src/panels/places/placesitemmodel.cpp index 8a02ead01..87ed24e90 100644 --- a/src/panels/places/placesitemmodel.cpp +++ b/src/panels/places/placesitemmodel.cpp @@ -249,7 +249,7 @@ QAction* PlacesItemModel::ejectAction(int index) const { const PlacesItem* item = placesItem(index); if (item && item->device().is()) { - return new QAction(QIcon::fromTheme(QStringLiteral("media-eject")), i18nc("@item", "Eject '%1'", item->text()), 0); + return new QAction(QIcon::fromTheme(QStringLiteral("media-eject")), i18nc("@item", "Eject"), 0); } return 0; @@ -283,14 +283,13 @@ QAction* PlacesItemModel::teardownAction(int index) const QString iconName; QString text; - const QString label = item->text(); if (device.is()) { - text = i18nc("@item", "Release '%1'", label); + text = i18nc("@item", "Release"); } else if (removable || hotPluggable) { - text = i18nc("@item", "Safely Remove '%1'", label); + text = i18nc("@item", "Safely Remove"); iconName = QStringLiteral("media-eject"); } else { - text = i18nc("@item", "Unmount '%1'", label); + text = i18nc("@item", "Unmount"); iconName = QStringLiteral("media-eject"); } -- cgit v1.3.1