Skip to content

Commit

Permalink
Bug #48 FileDialog created with SWT.OPEN displays error if no FilterP…
Browse files Browse the repository at this point in the history
…ath set

+if no filename set defaults to location of file

The issue was caused by if no filename was set then it would try to open file "" as a default which creates an error. This is simply fixed by if no filename is set then set the filename to location of the file

Signed-off-by: Jason Wang <[email protected]>
  • Loading branch information
Jason Wang committed Jul 26, 2022
1 parent 1e429fb commit ae20b22
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -479,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 ae20b22

Please sign in to comment.