Skip to content

Commit

Permalink
Bug eclipse-platform#48 FileDialog created with SWT.OPEN displays err…
Browse files Browse the repository at this point in the history
…or 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<[email protected]>
  • Loading branch information
Jason Wang committed Jul 26, 2022
1 parent 8f150f6 commit b2f6475
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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);
}
}

Expand Down

0 comments on commit b2f6475

Please sign in to comment.