Fix attachments dialogue infinite looping if closed with attachments present. Updates #1212.

Originally committed to SVN as r4596.
This commit is contained in:
Niels Martin Hansen 2010-06-24 20:43:23 +00:00
parent a71b83f61c
commit 6b36d730af
1 changed files with 4 additions and 1 deletions

View File

@ -144,7 +144,10 @@ DialogAttachments::~DialogAttachments() {
break;
if ((*cur)->GetEntryData() == L"[Fonts]" || (*cur)->GetEntryData() == L"[Graphics]") {
if (found_attachments) continue;
if (found_attachments) {
--cur;
continue;
}
// found section heading with no attachments in, remove it
wxString delgroup = (*cur)->group;
std::list<AssEntry*>::iterator di = cur;