From 1db9fd9ba9b22bd9f34ae1fe640be839641df1cf Mon Sep 17 00:00:00 2001 From: jules Date: Sun, 12 Oct 2014 16:14:53 +0100 Subject: [PATCH] Linux kdialog file-chooser fix --- .../native/juce_linux_FileChooser.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/modules/juce_gui_basics/native/juce_linux_FileChooser.cpp b/modules/juce_gui_basics/native/juce_linux_FileChooser.cpp index d50092c40f..8ac190b535 100644 --- a/modules/juce_gui_basics/native/juce_linux_FileChooser.cpp +++ b/modules/juce_gui_basics/native/juce_linux_FileChooser.cpp @@ -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())