1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-24 01:54:22 +00:00

Projucer: Don't attempt to parse empty file paths in FilePathPropertyComponent

This commit is contained in:
ed 2018-07-10 11:44:07 +01:00
parent 935d1ff805
commit a0493e67c1

View file

@ -159,6 +159,9 @@ private:
{
auto pathToCheck = editor.getTextValue().toString();
if (pathToCheck.isEmpty())
return;
//android SDK/NDK paths
if (pathToCheck.contains ("${user.home}"))
pathToCheck = pathToCheck.replace ("${user.home}", File::getSpecialLocation (File::userHomeDirectory).getFullPathName());