From d4dda4afaa083a4bd53d48b83777109f6eb6d950 Mon Sep 17 00:00:00 2001 From: eidheim Date: Tue, 21 Nov 2017 16:59:48 +0100 Subject: [PATCH] No longer updates folders that are not shown when changes in filesystem is detected --- src/directories.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/directories.cc b/src/directories.cc index 6551363..12fb34e 100644 --- a/src/directories.cc +++ b/src/directories.cc @@ -535,7 +535,7 @@ 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]() { - if(filesystem::file_in_path(path_and_row->first, path)) + if(directories.find(path_and_row->first.string())!=directories.end()) add_or_update_path(path_and_row->first, path_and_row->second, true); return false; }, 500);