mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-29 02:40:05 +00:00
Fixes for file-filter separator token parsing on linux zenity and win32.
This commit is contained in:
parent
2860f66953
commit
9efbd199a6
2 changed files with 11 additions and 5 deletions
|
|
@ -131,11 +131,11 @@ static void addZenityArgs (StringArray& args, String& separator,
|
|||
|
||||
if (filters.isNotEmpty() && filters != "*" && filters != "*.*")
|
||||
{
|
||||
args.add ("--file-filter");
|
||||
args.add (filters.replaceCharacter (';', ' '));
|
||||
StringArray tokens;
|
||||
tokens.addTokens (filters, ";,|", "\"");
|
||||
|
||||
args.add ("--file-filter");
|
||||
args.add ("All files | *");
|
||||
for (int i = 0; i < tokens.size(); ++i)
|
||||
args.add ("--file-filter='" + tokens[i] + "'");
|
||||
}
|
||||
|
||||
if (file.isDirectory())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue