mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Projucer: Pass current thread pool job to MessageManagerLock to prevent deadlock
This commit is contained in:
parent
455c323184
commit
097f3209db
1 changed files with 1 additions and 1 deletions
|
|
@ -927,7 +927,7 @@ void Project::Item::setID (const String& newID) { state.setProperty (Ids::ID,
|
|||
|
||||
Drawable* Project::Item::loadAsImageFile() const
|
||||
{
|
||||
const MessageManagerLock mml;
|
||||
const MessageManagerLock mml (ThreadPoolJob::getCurrentThreadPoolJob());
|
||||
return isValid() ? Drawable::createFromImageFile (getFile())
|
||||
: nullptr;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue