[nautilus] places-sidebar: don't assert we have a valid selected iter
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] places-sidebar: don't assert we have a valid selected iter
- Date: Wed, 19 Oct 2011 21:03:00 +0000 (UTC)
commit cda2c75df4b95a481e8b774081ec1240d47fa45f
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Wed Oct 19 16:59:38 2011 -0400
places-sidebar: don't assert we have a valid selected iter
When reordering bookmarks, don't assert we have a selected iter, since
it might not always be the case.
https://bugzilla.gnome.org/show_bug.cgi?id=660876
src/nautilus-places-sidebar.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/nautilus-places-sidebar.c b/src/nautilus-places-sidebar.c
index b133f54..567d8eb 100644
--- a/src/nautilus-places-sidebar.c
+++ b/src/nautilus-places-sidebar.c
@@ -1380,9 +1380,9 @@ reorder_bookmarks (NautilusPlacesSidebar *sidebar,
int old_position;
/* Get the selected path */
-
- if (!get_selected_iter (sidebar, &iter))
- g_assert_not_reached ();
+ if (!get_selected_iter (sidebar, &iter)) {
+ return;
+ }
gtk_tree_model_get (GTK_TREE_MODEL (sidebar->filter_model), &iter,
PLACES_SIDEBAR_COLUMN_ROW_TYPE, &type,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]