Fix attachments dialogue infinite looping if closed with attachments present. Updates #1212.
Originally committed to SVN as r4596.
This commit is contained in:
parent
a71b83f61c
commit
6b36d730af
1 changed files with 4 additions and 1 deletions
|
@ -144,7 +144,10 @@ DialogAttachments::~DialogAttachments() {
|
||||||
break;
|
break;
|
||||||
|
|
||||||
if ((*cur)->GetEntryData() == L"[Fonts]" || (*cur)->GetEntryData() == L"[Graphics]") {
|
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
|
// found section heading with no attachments in, remove it
|
||||||
wxString delgroup = (*cur)->group;
|
wxString delgroup = (*cur)->group;
|
||||||
std::list<AssEntry*>::iterator di = cur;
|
std::list<AssEntry*>::iterator di = cur;
|
||||||
|
|
Loading…
Reference in a new issue