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:
parent
3e606cc378
commit
95b1dce49c
1 changed files with 6 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue