[totem] main: Deal with disappearing search sources



commit a45ed9b5e878eee06c61cc59029da07b6c7864ce
Author: Bastien Nocera <hadess hadess net>
Date:   Thu Jan 30 22:27:54 2014 +0100

    main: Deal with disappearing search sources

 src/totem-search-entry.c |    7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/src/totem-search-entry.c b/src/totem-search-entry.c
index e94b989..ab7d507 100644
--- a/src/totem-search-entry.c
+++ b/src/totem-search-entry.c
@@ -323,11 +323,8 @@ totem_search_entry_remove_source (TotemSearchEntry *self,
                }
        }
 
-       if (current_removed) {
-               /* FIXME
-                * - don't forget to remove tag
-                * - check if it's the currently selected source and notify of the change if so */
-       }
+       if (current_removed)
+               totem_search_entry_set_selected_id (self, "grl-tracker-source");
 
        if (num_items == 0) {
                gd_tagged_entry_remove_tag (GD_TAGGED_ENTRY (self->priv->entry), self->priv->tag);


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