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:
parent
b9dc8f8ea9
commit
1db9fd9ba9
1 changed files with 6 additions and 6 deletions
|
|
@ -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())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue