1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-08 04:20:09 +00:00

Projucer: Lock the message loop when creating icon image files

This commit is contained in:
ed 2017-10-17 10:15:29 +01:00
parent 2ac2a39a21
commit 455c323184

View file

@ -927,6 +927,7 @@ void Project::Item::setID (const String& newID) { state.setProperty (Ids::ID,
Drawable* Project::Item::loadAsImageFile() const
{
const MessageManagerLock mml;
return isValid() ? Drawable::createFromImageFile (getFile())
: nullptr;
}