place sidebar: Make removing bookmarks work again
authorMatthias Clasen <mclasen@redhat.com>
Tue, 7 Jul 2015 03:21:51 +0000 (23:21 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 7 Jul 2015 03:21:51 +0000 (23:21 -0400)
This was accidentally broken in ae8c07c67cfa83d967 when I
forgot to switch the sense of a condition.

gtk/gtkplacessidebar.c

index 54271df8289a6cfc221a85d368bbae53d7c602d6..a591ea5da31f4f452bd80ccceb9ef854443ae80e 100644 (file)
@@ -2479,7 +2479,7 @@ remove_bookmark (GtkSidebarRow *row)
                 "uri", &uri,
                 NULL);
 
-  if (type != PLACES_BOOKMARK)
+  if (type == PLACES_BOOKMARK)
     {
       file = g_file_new_for_uri (uri);
       _gtk_bookmarks_manager_remove_bookmark (sidebar->bookmarks_manager, file, NULL);