Skip to content

Conversation

@m3nu
Copy link
Contributor

@m3nu m3nu commented Dec 23, 2025

Add null checks before accessing item.data in choose_data() and lessThan() methods to prevent AttributeError when QModelIndex returns None from internalPointer() during sorting operations.

Fixes #2249

Add null checks before accessing item.data in choose_data() and
lessThan() methods to prevent AttributeError when QModelIndex
returns None from internalPointer() during sorting operations.
m3nu added 2 commits January 1, 2026 16:52
Refactor FileTreeModel to batch item additions in a single model
reset cycle instead of resetting per item. For archives with ~5,400
files, this reduces model resets from 5,400 to 1.

- Extract _addItemInternal() for core add logic without signals
- Update addItems() to wrap all additions in single begin/endResetModel
- Update parse_json_lines() in extract_dialog.py to use batch API
- Update parse_diff_json() and parse_diff_lines() in diff_result.py
Add isomtime field to test data default dictionary so tests work
regardless of borg_compat.version state. The code uses either mtime
or isomtime depending on borg version, so providing both ensures
tests pass when run in isolation or alongside other tests.
@m3nu m3nu changed the title fix: handle None internalPointer in tree model sorting bug: fix tree model pointer exception and performance Jan 1, 2026
@m3nu m3nu merged commit 07a945f into master Jan 1, 2026
5 checks passed
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.

Vorta crash when selecting folder in 'choose files to extract' dialog

2 participants