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

Program closes with error when I click on empty project panel in 2.6 RC1 #2173

Closed
sangiye0 opened this issue Jan 10, 2025 · 1 comment · Fixed by #2181
Closed

Program closes with error when I click on empty project panel in 2.6 RC1 #2173

sangiye0 opened this issue Jan 10, 2025 · 1 comment · Fixed by #2181
Labels
bug Issue: Something isn't working user interface Component: General user interface
Milestone

Comments

@sangiye0
Copy link

It happens when I,
1. Close Welcome window by clicking Cancel button.
2. Then left-click on the completely empty Project Content panel.

This is screenshot.
스크린샷 2025-01-10 222539

Error dialog is below.

Environment:
novelWriter Version: 2.6rc1
Host OS: win32 (10.0.26100)
Python: 3.12.8 (0x30c08f0)
Qt: 5.15.2, PyQt: 5.15.11
enchant: 3.2.2

AttributeError:
'NoneType' object has no attribute 'clearCurrentIndex'

Traceback:
File "C:\Program Files\novelWriter\novelwriter\gui\projtree.py", line 809, in mousePressEvent
self._clearSelection()

File "C:\Program Files\novelWriter\novelwriter\gui\projtree.py", line 1023, in _clearSelection
self.selectionModel().clearCurrentIndex()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

@sangiye0 sangiye0 added the bug Issue: Something isn't working label Jan 10, 2025
@vkbo vkbo added this to the Release 2.6 milestone Jan 10, 2025
@vkbo vkbo added the user interface Component: General user interface label Jan 10, 2025
@vkbo
Copy link
Owner

vkbo commented Jan 10, 2025

Thanks for the report. You found a corner case that hasn't been covered. I'll fix it. 😃

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue: Something isn't working user interface Component: General user interface
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants