Browse Source

Projucer: Pass current thread pool job to MessageManagerLock to prevent deadlock

tags/2021-05-28
ed 8 years ago
parent
commit
097f3209db
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      extras/Projucer/Source/Project/jucer_Project.cpp

+ 1
- 1
extras/Projucer/Source/Project/jucer_Project.cpp 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;
}


Loading…
Cancel
Save