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

Skip QFileDialog.Options() #404

Merged
merged 1 commit into from
Aug 9, 2023
Merged

Skip QFileDialog.Options() #404

merged 1 commit into from
Aug 9, 2023

Conversation

talonchandler
Copy link
Collaborator

Fixes #403.

In PyQt5, QFileDialog has a class called Options that stores existing options.
In PyQt6, this class seems to have disappeared, although QFileDialog.Options() calls still appear further down the docs page (?).

This two-line fix seems to have fixed the issue on hummingbird, where I tested the "Browse" buttons and "Load calibration".

We don't set options anywhere else, so I don't expect any changes to the previous behavior.

@talonchandler talonchandler added this to the 0.4.0 milestone Aug 9, 2023
@codecov
Copy link

codecov bot commented Aug 9, 2023

Codecov Report

Merging #404 (18c58a5) into main (7cf3b56) will increase coverage by 0.00%.
The diff coverage is 0.00%.

@@          Coverage Diff          @@
##            main    #404   +/-   ##
=====================================
  Coverage   7.21%   7.21%           
=====================================
  Files         25      25           
  Lines       4438    4437    -1     
=====================================
  Hits         320     320           
+ Misses      4118    4117    -1     
Files Changed Coverage Δ
recOrder/plugin/main_widget.py 0.00% <0.00%> (ø)

@deprecated-napari-hub-preview-bot

Preview page for your plugin is ready here:
https://preview.napari-hub.org/mehta-lab/recOrder/404
Created: 2023-08-09T21:35:12.229080

@talonchandler talonchandler added this pull request to the merge queue Aug 9, 2023
Merged via the queue into main with commit 6dc571b Aug 9, 2023
9 of 10 checks passed
@talonchandler talonchandler deleted the qt6-dialog-fix branch September 24, 2023 19:08
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.

[BUG] Browse dialogs boxes fail in PyQT6 has no QFileDialog.Options()
2 participants