1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-17 00:44:19 +00:00

Added a bit of extra functionality to WindowsRegistry. Linux: couple of fixes for fullscreen, file chooser, and a bit of tidying up. Internal refactoring in NSViewComponent.

This commit is contained in:
jules 2012-03-18 16:41:03 +00:00
parent b888a72db9
commit 49870de020
7 changed files with 157 additions and 149 deletions

View file

@ -58,16 +58,20 @@ void FileChooser::showPlatformDialog (Array<File>& results,
ChildProcess child;
if (child.start (command))
{
const String result (child.readAllProcessOutput());
StringArray tokens;
const String result (child.readAllProcessOutput().trim());
if (selectMultipleFiles)
tokens.addTokens (result, separator, "\"");
else
tokens.add (result);
if (result.isNotEmpty())
{
StringArray tokens;
for (int i = 0; i < tokens.size(); i++)
results.add (File (tokens[i]));
if (selectMultipleFiles)
tokens.addTokens (result, separator, "\"");
else
tokens.add (result);
for (int i = 0; i < tokens.size(); i++)
results.add (File (tokens[i]));
}
child.waitForProcessToFinish (60 * 1000);
}