From 2fd1aefb9899af210362ad50c046a02999ae074f Mon Sep 17 00:00:00 2001 From: eidheim Date: Tue, 21 Nov 2017 09:27:04 +0100 Subject: [PATCH] Fixes crash that might happen when a new folder is created at the same time as one opens a subdirectory --- src/directories.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/directories.cc b/src/directories.cc index 2276c07..6551363 100644 --- a/src/directories.cc +++ b/src/directories.cc @@ -535,7 +535,8 @@ void Directories::add_or_update_path(const boost::filesystem::path &dir_path, co repository->clear_saved_status(); connection->disconnect(); *connection=Glib::signal_timeout().connect([path_and_row, this]() { - add_or_update_path(path_and_row->first, path_and_row->second, true); + if(filesystem::file_in_path(path_and_row->first, path)) + add_or_update_path(path_and_row->first, path_and_row->second, true); return false; }, 500); }