# HG changeset patch # User Colin Clark # Date 1502872962 -3600 # Node ID e6847b39721f3fbb97135111e07d713cbdab36ee # Parent f3f04883dc070e3d9e80b41c1e09866d7c2260aa Bug fix: Collection in multiple windows The same collection can be opened in multiple windows, causing problems when different files are appended to different windows. This commit permits only one window per collection. diff -r f3f04883dc07 -r e6847b39721f src/collect.c --- a/src/collect.c Tue Aug 15 20:07:40 2017 +0100 +++ b/src/collect.c Wed Aug 16 09:42:42 2017 +0100 @@ -1160,6 +1160,13 @@ GtkWidget *extra_label; GdkGeometry geometry; + /* If the collection is already opened in another window, return that one */ + cw = collection_window_find_by_path(path); + if (cw) + { + return cw; + } + cw = g_new0(CollectWindow, 1); collection_window_list = g_list_append(collection_window_list, cw);