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

BUG: Fix crash upon selecting files with DICOM browser import dialog #981

Merged
merged 1 commit into from
Jul 14, 2021

Conversation

jamesobutler
Copy link
Contributor

This closes #980.

Using my Windows machine and testing with 3D Slicer I was able to successfully import a file to the DICOM browser.
image

Previously it would crash upon selecting the "Import" button of the native dialog.
image

@jamesobutler jamesobutler requested review from pieper and lassoan July 13, 2021 22:33
@pieper
Copy link
Member

pieper commented Jul 14, 2021

Fixes #980

@pieper
Copy link
Member

pieper commented Jul 14, 2021

Yes, that looks like the fix.

How about getting rid of all the Q_ASSERTS and replacing them with CTK_SOFT_ASSERT messages? This could be a different PR.

Copy link
Member

@pieper pieper left a comment

Choose a reason for hiding this comment

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

I didn't have a chance to test it but this looks like the right solution.

@jamesobutler
Copy link
Contributor Author

Before merging I would suggest this gets tested on macOS as well for good measure. I only tested on Windows which is all I have available to me.

@pieper pieper merged commit a964dcc into commontk:master Jul 14, 2021
@pieper
Copy link
Member

pieper commented Jul 14, 2021

I don't think this issue depends on the OS.

@jamesobutler jamesobutler deleted the import-dicom-crash branch July 14, 2021 03:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

assert crash on mac - fail to access listView in dialog
2 participants