1
0
Fork 0
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:
ed 2017-10-17 11:23:42 +01:00
parent 455c323184
commit 097f3209db

View file

@ -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;
}