[gtk+] Fix an oversight in the previous commit



commit 1b755c546e5ab0693ae921f7febc1c8bb439193f
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu Jun 18 15:14:54 2015 -0400

    Fix an oversight in the previous commit
    
    We lost the line marking the search model as non-empty, causing
    us to show the 'no results' page despite there being results.

 gtk/gtkfilechooserwidget.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkfilechooserwidget.c b/gtk/gtkfilechooserwidget.c
index 2159607..51ba79e 100644
--- a/gtk/gtkfilechooserwidget.c
+++ b/gtk/gtkfilechooserwidget.c
@@ -6138,6 +6138,9 @@ search_engine_hits_added_cb (GtkSearchEngine      *engine,
       files = g_list_prepend (files, file);
     }
 
+  if (files)
+    impl->priv->search_model_empty = FALSE;
+
   _gtk_file_system_model_add_and_query_files (impl->priv->search_model,
                                               files,
                                               MODEL_ATTRIBUTES);


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