fix cleanup (code is self-evident). From Yevgeny @ waves
This commit is contained in:
parent
4d2d693190
commit
e73b4e6f55
@ -2789,6 +2789,16 @@ Session::cleanup_sources (CleanupReport& rep)
|
||||
|
||||
RegionFactory::remove_regions_using_source (i->second);
|
||||
sources.erase (i);
|
||||
|
||||
// also remove source from all_sources
|
||||
|
||||
for (set<string>::iterator j = all_sources.begin(); j != all_sources.end(); ++j) {
|
||||
spath = Glib::path_get_basename (*j);
|
||||
if ( spath == i->second->name () ) {
|
||||
all_sources.erase (j);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user