[rhythmbox] query-creator: check sort index on num_sort_options, not num_property_options
- From: Jonathan Matthew <jmatthew src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rhythmbox] query-creator: check sort index on num_sort_options, not num_property_options
- Date: Tue, 26 Dec 2017 06:44:32 +0000 (UTC)
commit 99db0502763e3b0e13377c0606c5c308dc4af7b1
Author: gkrithi8 <gkrithi8 gmail com>
Date: Tue Dec 26 16:43:59 2017 +1000
query-creator: check sort index on num_sort_options, not num_property_options
https://bugzilla.gnome.org/show_bug.cgi?id=791815
widgets/rb-query-creator.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/widgets/rb-query-creator.c b/widgets/rb-query-creator.c
index c410831..5739abc 100644
--- a/widgets/rb-query-creator.c
+++ b/widgets/rb-query-creator.c
@@ -469,7 +469,7 @@ rb_query_creator_set_sorting (RBQueryCreator *creator,
break;
/* check that it is a valid sort option */
- g_return_val_if_fail (i < num_property_options, FALSE);
+ g_return_val_if_fail (i < num_sort_options, FALSE);
gtk_combo_box_set_active (GTK_COMBO_BOX (priv->sort_menu), i);
sort_option_menu_changed (GTK_COMBO_BOX (priv->sort_menu), creator); /* force the checkbox to change
label */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]