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:
Adam Reichold 2016-02-27 19:20:41 +01:00
parent 5788dabf0d
commit 00a0da32a9

View File

@ -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