From b2f6475b35c50ba1ebf0f51481f7722932ab363f Mon Sep 17 00:00:00 2001 From: Jason Wang Date: Tue, 26 Jul 2022 14:22:36 -0400 Subject: [PATCH] Bug #48 FileDialog created with SWT.OPEN displays error if no FilterPathSet Removed gtk_file_chooset_set_folder when no fileName is set, this call is no longer required in gtk4 when no fileName set Signed-off-by: Jason Wang --- .../Eclipse SWT/gtk/org/eclipse/swt/widgets/FileDialog.java | 5 ----- 1 file changed, 5 deletions(-) diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/FileDialog.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/FileDialog.java index d14aeff8067..e1878f152a1 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/FileDialog.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/FileDialog.java @@ -455,9 +455,6 @@ void presetChooserDialog () { GTK.gtk_file_chooser_set_current_name (handle, buffer); } } else { - if (fileName.equals ("")) { - fileName = "./"; - } StringBuilder stringBuilder = new StringBuilder(); if (filterPath.length () > 0) { if (!uriMode) { @@ -482,8 +479,6 @@ void presetChooserDialog () { if (fileName.length() > 0) { GTK4.gtk_file_chooser_set_file (handle, file, 0); - } else { - GTK4.gtk_file_chooser_set_current_folder (handle, file, 0); } }