[geary] Don't set conversation title for zero or multiple conversations



commit 1d0e58bf2c339cd99a899298e71e6881c521f5b3
Author: Robert Schroll <rschroll gmail com>
Date:   Fri Mar 13 15:30:44 2015 -0400

    Don't set conversation title for zero or multiple conversations
    
    https://bugzilla.gnome.org/show_bug.cgi?id=746125

 src/client/components/main-toolbar.vala |    8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/src/client/components/main-toolbar.vala b/src/client/components/main-toolbar.vala
index b6ebc9a..629e574 100644
--- a/src/client/components/main-toolbar.vala
+++ b/src/client/components/main-toolbar.vala
@@ -214,10 +214,7 @@ public class MainToolbar : Gtk.Box {
     private void on_conversations_selected(Gee.Set<Geary.App.Conversation>? conversations,
         Geary.Folder? current_folder) {
         int selected_count = conversations.size;
-        if (selected_count == 0) {
-            conversation_title = _("No conversations selected");
-            conversation_participants = "";
-        } else if (selected_count == 1) {
+        if (selected_count == 1) {
             Geary.App.Conversation conversation = conversations.to_array()[0];
             Geary.Email? last_email = conversation.get_latest_recv_email(
                 Geary.App.Conversation.Location.ANYWHERE);
@@ -230,8 +227,7 @@ public class MainToolbar : Gtk.Box {
                 current_folder.account.information.get_all_mailboxes(),
                 current_folder.special_folder_type.is_outgoing(), false);
         } else {
-            conversation_title = ngettext("%u conversation selected", "%u conversations selected",
-                selected_count).printf(selected_count);
+            conversation_title = "";
             conversation_participants = "";
         }
     }


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