[shotwell] Work-around issue with photo context menu



commit a2a4e194f831e1533676878300a41fcdac9c4ca6
Author: Jens Georg <mail jensge org>
Date:   Sun Nov 20 23:13:08 2016 +0100

    Work-around issue with photo context menu
    
    Since we are not using separate action groups anymore, so leaving
    collection page is disabling the actions we just enabled in PhotoPage.
    
    Signed-off-by: Jens Georg <mail jensge org>

 src/CollectionPage.vala |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/CollectionPage.vala b/src/CollectionPage.vala
index 7b871b6..ba9e1ac 100644
--- a/src/CollectionPage.vala
+++ b/src/CollectionPage.vala
@@ -215,6 +215,11 @@ public abstract class CollectionPage : MediaPage {
     }
     
     protected override void update_actions(int selected_count, int count) {
+        //FIXME: Hack. Otherwise it will disable actions that just have been enabled by photo page
+        if (AppWindow.get_instance().get_current_page() != this) {
+            return;
+        }
+
         base.update_actions(selected_count, count);
 
         bool one_selected = selected_count == 1;


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