Movie list window: don't clear the store when the search field is empty
authorPhilipp Zabel <philipp.zabel@gmail.com>
Tue, 10 Nov 2009 19:23:01 +0000 (20:23 +0100)
committerPhilipp Zabel <philipp.zabel@gmail.com>
Wed, 11 Nov 2009 18:08:27 +0000 (19:08 +0100)
Start a new search with empty title filter instead.

src/movie-list-window.vala

index 1110905..3a20f51 100644 (file)
@@ -120,13 +120,6 @@ public class MovieListWindow : StackableWindow {
        }
 
        private void on_search_field_changed () {
-               if (search_field.get_text () == "") {
-                       store.clear ();
-                       movie_list.hide ();
-                       no_movies.show ();
-                       return;
-               }
-
                // With every change we reset the timer to 500ms
                if (source_id != 0) {
                        Source.remove (source_id);