From b563fc6db9fffbcb3873ed74d3e9bb0852233706 Mon Sep 17 00:00:00 2001
From: "Jesper K. Pedersen" <jesper.pedersen@kdab.com>
Date: Wed, 1 May 2013 12:15:30 +0200
Subject: [PATCH] edit note should also be disabled when a note is not editable

Change-Id: I35622ee65ddb7476f43af0ef3aeb0eca6ba0ff4b
Reviewed-by: Vasiliy Sorokin <sorokin.vasiliy@gmail.com>
Reviewed-by: David Schulz <david.schulz@digia.com>
---
 src/plugins/bookmarks/bookmarkmanager.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/plugins/bookmarks/bookmarkmanager.cpp b/src/plugins/bookmarks/bookmarkmanager.cpp
index 642da498469..dd2bed06385 100644
--- a/src/plugins/bookmarks/bookmarkmanager.cpp
+++ b/src/plugins/bookmarks/bookmarkmanager.cpp
@@ -246,6 +246,7 @@ void BookmarkView::contextMenuEvent(QContextMenuEvent *event)
         moveUp->setEnabled(false);
         moveDown->setEnabled(false);
         remove->setEnabled(false);
+        editNote->setEnabled(false);
     }
 
     if (model()->rowCount() == 0)
-- 
GitLab