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

FIX: correct attribute name #1860

Merged
merged 4 commits into from Mar 11, 2022
Merged

FIX: correct attribute name #1860

merged 4 commits into from Mar 11, 2022

Conversation

stevenjkern
Copy link
Contributor

@stevenjkern stevenjkern commented Mar 9, 2022

Closes #1859

This PR fixes a mis-named attribute accession in the FileEditor's Qt and Wx implementation. Since the bug makes the editor unusable, I think this will warrant a hotfix release.

Copy link
Contributor

@rahulporuri rahulporuri left a comment

Choose a reason for hiding this comment

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

LGTM. Looks like we need the same fix for wx as well -

if self.factory.truncate:

	modified:   traitsui/wx/file_editor.py
@mdickinson
Copy link
Member

Please could we have a test before this goes in?

@rahulporuri

This comment was marked as resolved.

@corranwebster corranwebster merged commit 758a0f0 into main Mar 11, 2022
@corranwebster corranwebster deleted the fix/file-editor-truncate branch March 11, 2022 10:32
corranwebster added a commit that referenced this pull request Mar 14, 2022
* FIX: correct attribute name

* FIX: Use the correct editor factory trait on the wx editor

	modified:   traitsui/wx/file_editor.py

* Tests for show_file_dialog and truncate_ext behaviour.

* Remove extraneous print_traits()

Co-authored-by: Poruri Sai Rahul <rporuri@enthought.com>
Co-authored-by: Corran Webster <cwebster@enthought.com>
corranwebster added a commit that referenced this pull request Mar 14, 2022
* FIX: correct attribute name

* FIX: Use the correct editor factory trait on the wx editor

	modified:   traitsui/wx/file_editor.py

* Tests for show_file_dialog and truncate_ext behaviour.

* Remove extraneous print_traits()

Co-authored-by: Poruri Sai Rahul <rporuri@enthought.com>
Co-authored-by: Corran Webster <cwebster@enthought.com>
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.

Mis-named attribute in FileEditor's Qt simple implementation
4 participants