syncthing/gui/default
tomasz1986 43f0e5c91d
gui: Fix error in Restore Versions when path exists as both directory and file (fixes #7068) (#8532)
The current code checks whether the same-named item exists in the tree,
and when it does, it re-uses it when adding new children to it. However,
the code doesn't check whether the existing item is a folder or a file.
It rather assumes that it is always a folder, which is not necessarily
the case.

This commit adds a new check to the code, so that the existing element
is reused only when it is a folder, and ignored otherwise.

Signed-off-by: Tomasz Wilczyński <twilczynski@naver.com>
2022-09-12 08:19:29 +02:00
..
assets gui, man, authors: Update docs, translations, and contributors 2022-09-12 04:32:45 +00:00
syncthing gui: Fix error in Restore Versions when path exists as both directory and file (fixes #7068) (#8532) 2022-09-12 08:19:29 +02:00
vendor all: Fix various user-facing and non-user-facing typos (#8509) 2022-08-23 15:44:11 +02:00
index.html gui: Add tooltip to folder error message (fixes #7603) (#8531) 2022-09-11 22:13:04 +02:00
modal.html gui: Update to Font Awesome v5 (#4889) 2018-05-24 19:59:32 +01:00