Index tree context menu used in "free area" should operate on toplevel namespace

Reported by zsquareplusc on 2011-05-05
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zim
Low
Unassigned

Bug Description

Context menu in index tree does not operate on "toplevel" when opened in free area (no tree item under the mouse pointer), instead it operates on the last selected entry.

in more words:

Situation:
- Notebook with sub-pages
- sub page is selected
- context menu in index (sidebar) is used with "New page..", the mouse pointer was in the free area under all other entries in the tree, i.e. not pointing at any entry.

Expectation:
- the page is created where the mouse points to
- it points to no page, so expectation is "toplevel"

What actually happens:
- the page is created in parallel to the currently selected page.

It probably functions as expected with one minor issue. What I expected was that with right click, any entry below the mouse is implicitly selected and operated on (it does this), but if there is no entry below the pointer at that moment, it should work on top level.

summary: - Index tree context menu used in "free area" does not operate on toplevel
+ Index tree context menu used in "free area" should operate on toplevel
+ namespace
Changed in zim:
status: New → Confirmed
importance: Undecided → Low

Tried fixing, but turns out x,y positions outside list get contributed to the last item in the list :(

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers