1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Projucer: Fix open documents not closing when no callback is provided

This commit is contained in:
ed 2021-10-06 11:58:52 +01:00
parent 3e606cc378
commit 95b1dce49c

View file

@ -254,15 +254,19 @@ void OpenDocumentManager::closeDocumentAsync (Document* doc, SaveIfNeeded saveIf
return;
}
auto closed = parent->closeDocumentWithoutSaving (doc);
if (callback != nullptr)
callback (parent->closeDocumentWithoutSaving (doc));
callback (closed);
});
return;
}
auto closed = closeDocumentWithoutSaving (doc);
if (callback != nullptr)
callback (closeDocumentWithoutSaving (doc));
callback (closed);
}
void OpenDocumentManager::closeFileWithoutSaving (const File& f)