mirror of https://github.com/odrling/Aegisub
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
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue