Browse Source

Linux kdialog file-chooser fix

tags/2021-05-28
jules 11 years ago
parent
commit
1db9fd9ba9
1 changed files with 6 additions and 6 deletions
  1. +6
    -6
      modules/juce_gui_basics/native/juce_linux_FileChooser.cpp

+ 6
- 6
modules/juce_gui_basics/native/juce_linux_FileChooser.cpp 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())


Loading…
Cancel
Save