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 d14aeff806..e1878f152a 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); } }