Skip to content

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

@remi-pr

Description

@remi-pr

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions