[geary/wip/765516-gtk-widget-conversation-viewer: 154/169] Don't consider collapsed emails for find prefil/reply quoting.



commit 5ea0d5f368f933f75d7da3e00c111d27b337a729
Author: Michael James Gratton <mike vee net>
Date:   Wed Sep 7 10:58:19 2016 +1000

    Don't consider collapsed emails for find prefil/reply quoting.

 .../conversation-viewer/conversation-listbox.vala  |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/src/client/conversation-viewer/conversation-listbox.vala 
b/src/client/conversation-viewer/conversation-listbox.vala
index 02f470c..2141a0c 100644
--- a/src/client/conversation-viewer/conversation-listbox.vala
+++ b/src/client/conversation-viewer/conversation-listbox.vala
@@ -278,7 +278,12 @@ public class ConversationListBox : Gtk.ListBox {
     public ConversationEmail? get_selection_view() {
         ConversationEmail? view = this.body_selected_view;
         if (view != null) {
-            // XXX actually check the selected text is visible
+            if (view.is_collapsed) {
+                // A collapsed email can't be visible
+                view = null;
+            } else {
+                // XXX check the selected text is actually on screen
+            }
         }
         return view;
     }


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