Skip to content

Adding new items not correctly represented in document Tree #9

@opt12

Description

@opt12

Checklist:

  • I updated to the latest version available

Used the latest sources Commit 8be7670

Running on Python 3.11

poetry run python build.py to build the package
poetry run doorstop-edit to run the program

Description of problem:

Document Tree behaves erratic after adding items

I opened up the original doorstop repository in Doorstop-Edit. this contains requirements in different documents:

REQ
│
├── LLT
│
├── EXT
│
└── TUT
    │
    └── HLT

Tried to add a new item using the context menu in the document tree. Document REQ:

Image

Expected behavior
A new item is shown below the 3.4 Assets entry.

Observed behavior
The new item is displayed in the tree as 1.0 and the section 3 is collapsed again.

Image

The new entry however, has the correct number 3.5 after selecting in the tree view.

Image

After editing the new requirement, on has to reload the tree view manually to have the new item in the correct position.

Additional Info

Things get worse, when adding a new item to a sub document:

  • new item is created like described above
  • The treeview displays the parent document and one has to manually change the document, find the new item, edit it and reload the tree.

Version dump:

Version: (local)
VCS: 0.1.1-47-g8be7670-dirty
Commit: 8be7670925b9c2116494df66a693c05b9c6a7450
Date: 2025-08-05T14:37:58.107678
Doorstop: 3.0
PySide6: 6.9.0
Python: 3.11.11
OS: Windows-10-10.0.26100-SP0

Additional information:

Looks like the tree view is not correctly synchronized with other things going on. unfortunately, I'm not sufficiently into QT to inestigate further.

I would really appreciate some update on this, as the other functions of doorstop-edit quite fit exactly our needs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions