[gnote] Fix open note action availability



commit bec26bd73ec4ed788607b0251f6f5e065d97fa00
Author: Aurimas Äernius <aurisc4 gmail com>
Date:   Mon Sep 26 22:44:03 2011 +0300

    Fix open note action availability
    
    Open note action should be available when only one note is selected.

 src/recentchanges.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/recentchanges.cpp b/src/recentchanges.cpp
index 3ffdfe0..3f8e8aa 100644
--- a/src/recentchanges.cpp
+++ b/src/recentchanges.cpp
@@ -783,7 +783,7 @@ namespace gnote {
       am ["OpenNoteAction"]->property_sensitive() = false;
       am ["DeleteNoteAction"]->property_sensitive() = false;
     } 
-    else if (selected_notes.size() > 1) {
+    else if (selected_notes.size()) {
       am ["OpenNoteAction"]->property_sensitive() = true;
       am ["DeleteNoteAction"]->property_sensitive() = true;
     } 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]