mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-18 16:10:08 +00:00
Remove bookmark duplicate of shortcut
Application code can set shortcut folders that are already bookmarks. This code causes the bookmarks to be refreshed after the shortcut is added removing any possible bookmark duplicates https://bugzilla.gnome.org/show_bug.cgi?id=577806
This commit is contained in:
parent
5934ad2e22
commit
0239ee50be
@ -7771,6 +7771,9 @@ add_shortcut_get_info_cb (GCancellable *cancellable,
|
||||
|
||||
shortcuts_insert_file (data->impl, pos, SHORTCUT_TYPE_FILE, NULL, data->file, NULL, FALSE, SHORTCUTS_SHORTCUTS);
|
||||
|
||||
/* need to call shortcuts_add_bookmarks to flush out any duplicates bug #577806 */
|
||||
shortcuts_add_bookmarks (data->impl);
|
||||
|
||||
out:
|
||||
g_object_unref (data->impl);
|
||||
g_object_unref (data->file);
|
||||
|
Loading…
Reference in New Issue
Block a user