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

Not getting the complete file path when using the ControlFile widget to save a file #20

Open
remi-pr opened this issue Aug 28, 2020 · 1 comment

Comments

@remi-pr
Copy link

remi-pr commented Aug 28, 2020

Source of issue

When using the ControlFile widget, the call to the underlying Qt method to get a file path is correct but here:


only the first character of the path is kept. This is because when using the same widget to open a file, a more generic call is made (to be Qt4 and Qt5 compatible I guess) and it is possible to get back a tuple and not just a string.

Potential solution

Possible solutions to this issue could be:

  • Test the type of the value and treat differently tuples and strings
  • Check if one is using the widget for opening or saving
@remi-pr
Copy link
Author

remi-pr commented Sep 2, 2020

Apparently this is fixed in this PR .

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

No branches or pull requests

1 participant