1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-25 02:04:23 +00:00

Linux kdialog file-chooser fix

This commit is contained in:
jules 2014-10-12 16:14:53 +01:00
parent b9dc8f8ea9
commit 1db9fd9ba9

View file

@ -65,6 +65,12 @@ static void addKDialogArgs (StringArray& args, String& separator,
if (title.isNotEmpty())
args.add ("--title=" + title);
if (uint64 topWindowID = getTopWindowID())
{
args.add ("--attach");
args.add (String (topWindowID));
}
if (selectMultipleFiles)
{
separator = "\n";
@ -79,12 +85,6 @@ static void addKDialogArgs (StringArray& args, String& separator,
else args.add ("--getopenfilename");
}
if (uint64 topWindowID = getTopWindowID())
{
args.add ("--attach");
args.add (String (topWindowID));
}
File startPath;
if (file.exists())