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. 1
      src/directories.cc

1
src/directories.cc

@ -535,6 +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))
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