[easytag/wip/musicbrainz-support-merge: 68/76] Corrected filter assertion
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [easytag/wip/musicbrainz-support-merge: 68/76] Corrected filter assertion
- Date: Thu, 28 Aug 2014 07:39:19 +0000 (UTC)
commit dcd50c2e889e880f0a874345a721a1e545c67e14
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 e8a8744..90f4798 100644
--- a/src/mbentityview.c
+++ b/src/mbentityview.c
@@ -1124,7 +1124,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));
}
@@ -1142,7 +1142,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))
@@ -1200,7 +1200,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));
}
@@ -1219,7 +1219,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);
@@ -1256,7 +1256,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]