Browse Source

No longer updates folders that are not shown when changes in filesystem is detected

merge-requests/365/head
eidheim 8 years ago
parent
commit
d4dda4afaa
  1. 2
      src/directories.cc

2
src/directories.cc

@ -535,7 +535,7 @@ void Directories::add_or_update_path(const boost::filesystem::path &dir_path, co
repository->clear_saved_status(); repository->clear_saved_status();
connection->disconnect(); connection->disconnect();
*connection=Glib::signal_timeout().connect([path_and_row, this]() { *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); add_or_update_path(path_and_row->first, path_and_row->second, true);
return false; return false;
}, 500); }, 500);

Loading…
Cancel
Save