Skip to content

4695 silx.gui.fit.FitWidget: fix usage of qt.QFileDialog.getOpenFileName - #4696

Merged
payno merged 5 commits into
mainfrom
4695-tuple-passed-to-fitmanagerloadtheories
Aug 12, 2026
Merged

4695 silx.gui.fit.FitWidget: fix usage of qt.QFileDialog.getOpenFileName#4696
payno merged 5 commits into
mainfrom
4695-tuple-passed-to-fitmanagerloadtheories

Conversation

@payno

@payno payno commented Aug 11, 2026

Copy link
Copy Markdown
Member

PR summary

The PR fix the call of qt.QFileDialog.getOpenFileName. The call return "(fileName, selectedFilter)" - for PySide6, PySide2, PyQt5 and PyQt6 - which seems different from the C++ API 😢

Close #4695

AI Disclosure

  • Claude used for adding the test.

Note: bug fix-release to be done.

@payno payno linked an issue Aug 11, 2026 that may be closed by this pull request
@payno
payno requested a review from a team August 11, 2026 14:10

@woutdenolf woutdenolf left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

When not functionsfile is functionsfile == "" or functionsfile is None?

Comment thread src/silx/gui/fit/FitWidget.py Outdated
Comment thread src/silx/gui/fit/FitWidget.py Outdated
payno and others added 2 commits August 12, 2026 08:32
Co-authored-by: Wout De Nolf <woutdenolf@users.sf.net>
Co-authored-by: Wout De Nolf <woutdenolf@users.sf.net>
@payno

payno commented Aug 12, 2026

Copy link
Copy Markdown
Member Author

When not functionsfile is functionsfile == "" or functionsfile is None?

First one. It always return a string. But I can make the condition more explicit.

@payno
payno requested a review from woutdenolf August 12, 2026 06:54

@woutdenolf woutdenolf left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM. Thanks!

@payno
payno merged commit 645343a into main Aug 12, 2026
4 checks passed
@payno
payno deleted the 4695-tuple-passed-to-fitmanagerloadtheories branch August 12, 2026 14:43
@payno payno mentioned this pull request Aug 18, 2026
1 task
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.

tuple passed to FitManager.loadtheories()

2 participants