Browse Source

Fixes crash that might happen when a new folder is created at the same time as one opens a subdirectory

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

3
src/directories.cc

@ -535,7 +535,8 @@ 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]() {
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; return false;
}, 500); }, 500);
} }

Loading…
Cancel
Save