diff options
| author | Kai Uwe Broulik <[email protected]> | 2017-03-14 22:42:07 +0100 |
|---|---|---|
| committer | Kai Uwe Broulik <[email protected]> | 2017-03-14 22:42:07 +0100 |
| commit | 429427767bc6340ac8aafea3736b575ddcf186b4 (patch) | |
| tree | a8735437ea69aefaf5b8df42c27a84b2902c87c1 /src/panels/places/placesitemmodel.cpp | |
| parent | db54c9b6ce543bab4f40f725d510e40880bc3a1a (diff) | |
Cleanup Places Panel context menus
Differential Revision: https://phabricator.kde.org/D4498
Diffstat (limited to 'src/panels/places/placesitemmodel.cpp')
| -rw-r--r-- | src/panels/places/placesitemmodel.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
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<Solid::OpticalDisc>()) { - 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<Solid::OpticalDisc>()) { - 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"); } |
