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

FilenameComponent: if partial filenames are entered, these get interpreted relative to the CWD.

This commit is contained in:
jules 2013-10-04 20:44:57 +01:00
parent 91d08bb7af
commit f43abb9757

View file

@ -157,7 +157,7 @@ void FilenameComponent::fileDragExit (const StringArray&)
//==============================================================================
File FilenameComponent::getCurrentFile() const
{
File f (filenameBox.getText());
File f (File::getCurrentWorkingDirectory().getChildFile (filenameBox.getText()));
if (enforcedSuffix.isNotEmpty())
f = f.withFileExtension (enforcedSuffix);