Skip to content

Commit

Permalink
Fixed QFileDialog enum location
Browse files Browse the repository at this point in the history
  • Loading branch information
jooste committed Dec 22, 2022
1 parent cb1debe commit 6ceb726
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bluesky/ui/qtgl/mainwindow.py
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ def getscenpath(resource):
if platform.system().lower() == 'darwin':
response = QFileDialog.getOpenFileName(self, 'Open file', scenpath, 'Scenario files (*.scn)')
else:
response = QFileDialog.getOpenFileName(self, 'Open file', scenpath, 'Scenario files (*.scn)', options=QFileDialog.DontUseNativeDialog)
response = QFileDialog.getOpenFileName(self, 'Open file', scenpath, 'Scenario files (*.scn)', options=QFileDialog.Option.DontUseNativeDialog)
fname = response[0] if isinstance(response, tuple) else response

# Send IC command to stack with filename if selected, else do nothing
Expand Down

0 comments on commit 6ceb726

Please sign in to comment.