mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-17 15:31:20 +00:00
[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
This commit is contained in:
parent
0d2f86de18
commit
da42a9eefb
|
@ -197,7 +197,9 @@ void PlacesPanel::slotItemContextMenuRequested(int index, const QPointF& pos)
|
||||||
menu.addSeparator();
|
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;
|
QAction* removeAction = 0;
|
||||||
if (!isDevice && !item->isSystemItem()) {
|
if (!isDevice && !item->isSystemItem()) {
|
||||||
|
|
Loading…
Reference in a new issue