Fix #3181 by store the filename which will be unset when the entry is deleted and hence cannot be bound by reference.
This commit is contained in:
parent
5788dabf0d
commit
00a0da32a9
@ -935,7 +935,7 @@ void FileCatalog::deleteRequested (std::vector<FileBrowserEntry*> tbe, bool inc
|
||||
|
||||
if (msd.run() == Gtk::RESPONSE_YES) {
|
||||
for (unsigned int i = 0; i < tbe.size(); i++) {
|
||||
const auto& fname = tbe[i]->filename;
|
||||
const auto fname = tbe[i]->filename;
|
||||
// remove from browser
|
||||
delete fileBrowser->delEntry (fname);
|
||||
// remove from cache
|
||||
|
Loading…
x
Reference in New Issue
Block a user