syncthing/gui
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
..
black/assets/css gui: Tweak the Restore Versions modal for better usability (#7972) 2022-01-25 23:08:27 +01:00
dark/assets/css gui: Tweak the Restore Versions modal for better usability (#7972) 2022-01-25 23:08:27 +01:00
default 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
light/assets/css gui: Tweak the Restore Versions modal for better usability (#7972) 2022-01-25 23:08:27 +01:00