Mercurial > hg > forks > geeqie
changeset 2581:e6847b39721f
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.
author | Colin Clark <colin.clark@cclark.uk> |
---|---|
date | Wed, 16 Aug 2017 09:42:42 +0100 |
parents | f3f04883dc07 |
children | 03014a1eb7e7 |
files | src/collect.c |
diffstat | 1 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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);