Fixed possible crash after deleting a set of bookmarks.

This commit is contained in:
vng 2014-08-20 19:06:51 +03:00 committed by Alex Zolotarev
parent 293470495e
commit a53ee38afb

View file

@ -287,6 +287,8 @@ void BookmarkManager::DrawItems(shared_ptr<PaintEvent> const & e) const
void BookmarkManager::DeleteBmCategory(CategoryIter i)
{
m_selection.ActivateMark(0, false);
BookmarkCategory * cat = *i;
FileWriter::DeleteFileX(cat->GetFileName());