Tags plugin popup menu has invalid options
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zim |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Clicking on some options in the popup menu in Tags Plugin window causes error.
How to reproduce:
Choose option 'sort pages by tags' in tags window, you will have list of tags with sub-pages.
Click on any tag name and choose in the popup menu an option like 'Open in New Window', 'Rename Page...', etc.
Since such page doesn't exist this will cause error.
Tags plugin uses default popup menu with all available items. The solution could be to introduce additional check whether this element is valid or not - see patch for example.
======= Traceback =======
File "...\zim\
method(*arg)
File "...\zim\
PageWindow(
File "...\zim\
page = ui.notebook.
File "...\zim\
page = store.get_
File "...\zim\
file = self._get_
File "...\zim\
assert path != self.namespace, 'Can not get a file for the toplevel namespace'
AssertionError: Can not get a file for the toplevel namespace
Changed in zim: | |
status: | Fix Committed → Fix Released |
Fix in rev 775