Commit b12aeed5 authored by Cosimo Cecchi's avatar Cosimo Cecchi

bookmark: compare URIs before names

parent 120797ce
...@@ -142,16 +142,16 @@ nautilus_bookmark_compare_with (gconstpointer a, gconstpointer b) ...@@ -142,16 +142,16 @@ nautilus_bookmark_compare_with (gconstpointer a, gconstpointer b)
bookmark_a = NAUTILUS_BOOKMARK (a); bookmark_a = NAUTILUS_BOOKMARK (a);
bookmark_b = NAUTILUS_BOOKMARK (b); bookmark_b = NAUTILUS_BOOKMARK (b);
if (eel_strcmp (bookmark_a->details->name,
bookmark_b->details->name) != 0) {
return 1;
}
if (!g_file_equal (bookmark_a->details->location, if (!g_file_equal (bookmark_a->details->location,
bookmark_b->details->location)) { bookmark_b->details->location)) {
return 1; return 1;
} }
if (eel_strcmp (bookmark_a->details->name,
bookmark_b->details->name) != 0) {
return 1;
}
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment