Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue #48 FileDialog created displays error if no fileFilter Path set #229

Merged
merged 1 commit into from
Aug 2, 2022

Conversation

jasonhy-wang
Copy link
Contributor

@jasonhy-wang jasonhy-wang commented Jun 23, 2022

+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]

Original Issue #48

@github-actions
Copy link
Contributor

github-actions bot commented Jun 23, 2022

Unit Test Results

     602 files       602 suites   11m 51s ⏱️
  4 016 tests   4 001 ✔️     5 💤   7    3 🔥
24 040 runs  23 871 ✔️ 134 💤 19  16 🔥

For more details on these failures and errors, see this check.

Results for commit ae20b22.

♻️ This comment has been updated with latest results.

Copy link
Contributor

@joel-majano joel-majano left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verified using Snippet 48, ClipboardExample "Choose file" dialog and TextEditor.java "Open" feature. Issue is fixed.

@akurtakov
Copy link
Member

/rebase

@akurtakov
Copy link
Member

This feels more like workaround rather than bugfix. IMHO a better fix would be needed that properlty sets the chooser up to not require this hack. Can you reproduce the issue in pure C code?

Copy link
Member

@iloveeclipse iloveeclipse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, it looks like you changed way more files as needed, most likely due some bad merge operation.

Please only push one commit with only changes you really wanted to make.

…or if no FilterPath 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]>
@akurtakov
Copy link
Member

@iloveeclipse as @jasonhy-wang rebased properly I'll dismiss your change request to not block it further.

@akurtakov
Copy link
Member

Works just fine as tested on Gtk 4.x locally.

@akurtakov akurtakov merged commit da9558f into eclipse-platform:master Aug 2, 2022
@lshanmug lshanmug added this to the 4.25 M3 milestone Aug 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants