[easytag/wip/musicbrainz-support-merge] Corrected filter assertion



commit ee642ab98f93f11b09cecc58d07174302def6ec3
Author: Abhinav <abhijangda hotmail com>
Date:   Fri Aug 15 19:42:47 2014 +0530

    Corrected filter assertion

 src/mbentityview.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/mbentityview.c b/src/mbentityview.c
index f6159cc..44124da 100644
--- a/src/mbentityview.c
+++ b/src/mbentityview.c
@@ -1125,7 +1125,7 @@ et_mb_entity_view_toggle_red_lines (EtMbEntityView *entity_view)
     priv = ET_MB_ENTITY_VIEW_GET_PRIVATE (entity_view);
     priv->search_or_red = priv->search_or_red | ET_MB_DISPLAY_RESULTS_RED;
     priv->toggle_red_lines = !priv->toggle_red_lines;
-    g_return_if_fail (!priv->filter);
+    g_return_if_fail (priv->filter);
     gtk_tree_model_filter_refilter (GTK_TREE_MODEL_FILTER (priv->filter));
 }
 
@@ -1143,7 +1143,7 @@ et_mb_entity_view_invert_selection (EtMbEntityView *entity_view)
     GtkTreeSelection *selection;
 
     priv = ET_MB_ENTITY_VIEW_GET_PRIVATE (entity_view);
-    g_return_if_fail (!priv->filter);
+    g_return_if_fail (priv->filter);
     selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (priv->tree_view));
 
     if (!gtk_tree_model_get_iter_first (priv->filter, &filter_iter))
@@ -1201,7 +1201,7 @@ et_mb_entity_view_search_in_results (EtMbEntityView *entity_view,
     priv = ET_MB_ENTITY_VIEW_GET_PRIVATE (entity_view);
     priv->text_to_search_in_results = text;
     priv->search_or_red = priv->search_or_red | ET_MB_DISPLAY_RESULTS_SEARCH;
-    g_return_if_fail (!priv->filter);
+    g_return_if_fail (priv->filter);
     gtk_tree_model_filter_refilter (GTK_TREE_MODEL_FILTER (priv->filter));
 }
 
@@ -1220,7 +1220,7 @@ et_mb_entity_view_select_up (EtMbEntityView *entity_view)
     GList *selected_rows;
 
     priv = ET_MB_ENTITY_VIEW_GET_PRIVATE (entity_view);
-    g_return_if_fail (!priv->filter);
+    g_return_if_fail (priv->filter);
     selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (priv->tree_view));
     selected_rows = gtk_tree_selection_get_selected_rows (selection,
                                                           &priv->filter);
@@ -1257,7 +1257,7 @@ et_mb_entity_view_select_down (EtMbEntityView *entity_view)
     GList *selected_rows;
 
     priv = ET_MB_ENTITY_VIEW_GET_PRIVATE (entity_view);   
-    g_return_if_fail (!priv->filter);
+    g_return_if_fail (priv->filter);
     selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (priv->tree_view));
     selected_rows = gtk_tree_selection_get_selected_rows (selection,
                                                           &priv->filter);


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