diff options
author | Alberto Garcia <agarcia@igalia.com> | 2010-02-24 13:29:11 +0000 |
---|---|---|
committer | Alberto Garcia <agarcia@igalia.com> | 2010-02-24 13:29:43 +0000 |
commit | 155aa78127876f1e241304de1dcd9ea1209dc147 (patch) | |
tree | 3706083b59708b7bf7ced4dd42ad6149c9687a9a /hildon | |
parent | 545564b69e020fd955d80d6af5561bb27481ef50 (diff) |
HildonSortDialog: don't complain if the sort key is set to 0
Fixes: NB#134052
Diffstat (limited to 'hildon')
-rw-r--r-- | hildon/hildon-sort-dialog.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hildon/hildon-sort-dialog.c b/hildon/hildon-sort-dialog.c index 3f5b49f..1a93f2d 100644 --- a/hildon/hildon-sort-dialog.c +++ b/hildon/hildon-sort-dialog.c @@ -161,7 +161,7 @@ sort_key_changed (GtkWidget *widget, g_assert (priv); gint index = gtk_combo_box_get_active (GTK_COMBO_BOX (widget)); - g_return_if_fail (index < priv->index_counter && index > 0); + g_return_if_fail (index < priv->index_counter && index >= 0); if (priv->key_reversed [index] != priv->reversed) { reconstruct_combo (dialog, TRUE, priv->key_reversed [index]); |