diff options
| author | Kai Uwe Broulik <[email protected]> | 2017-06-27 14:03:31 +0200 |
|---|---|---|
| committer | Kai Uwe Broulik <[email protected]> | 2017-06-27 14:03:31 +0200 |
| commit | da42a9eefb7c28ca346f1be2817f1f36ddf9bb6e (patch) | |
| tree | 0d9b7c96dac40dae2cbdd24ef7bd0789b311eb41 /src/panels/places/placespanel.cpp | |
| parent | 0d2f86de18390169286c9ef928c0ca388e3ccd2d (diff) | |
[Places Panel] Disallow editing devices
I introduced this bug when I changed the layout of the menu.
While it would be nice if one could edit devices, it is currently not possible
and would require significant re-engineering effort in Solid.
While the "Edit" menu works just fine, changes are not persisted.
Reviewed-By: emmanuelp
Differential Revision: https://phabricator.kde.org/D6294
Diffstat (limited to 'src/panels/places/placespanel.cpp')
| -rw-r--r-- | src/panels/places/placespanel.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/panels/places/placespanel.cpp b/src/panels/places/placespanel.cpp index 17367b865..3c9309435 100644 --- a/src/panels/places/placespanel.cpp +++ b/src/panels/places/placespanel.cpp @@ -197,7 +197,9 @@ void PlacesPanel::slotItemContextMenuRequested(int index, const QPointF& pos) menu.addSeparator(); } - editAction = menu.addAction(QIcon::fromTheme("document-properties"), i18nc("@item:inmenu", "Edit...")); + if (!isDevice) { + editAction = menu.addAction(QIcon::fromTheme("document-properties"), i18nc("@item:inmenu", "Edit...")); + } QAction* removeAction = 0; if (!isDevice && !item->isSystemItem()) { |
