Fix bug with clearing class tag lists
This commit is contained in:
@@ -121,7 +121,7 @@ class GuiDocViewerPanel(QWidget):
|
|||||||
def clearClassTabs(self) -> None:
|
def clearClassTabs(self) -> None:
|
||||||
"""Clear all the class tabs"""
|
"""Clear all the class tabs"""
|
||||||
for cTab in self.kwTabs.values():
|
for cTab in self.kwTabs.values():
|
||||||
cTab.clear()
|
cTab.clearContent()
|
||||||
return
|
return
|
||||||
|
|
||||||
##
|
##
|
||||||
@@ -349,6 +349,12 @@ class _ViewPanelKeyWords(QTreeWidget):
|
|||||||
"""Return the number of items in the list."""
|
"""Return the number of items in the list."""
|
||||||
return self.topLevelItemCount()
|
return self.topLevelItemCount()
|
||||||
|
|
||||||
|
def clearContent(self) -> None:
|
||||||
|
"""Clear the list."""
|
||||||
|
self._tagMap = {}
|
||||||
|
self.clear()
|
||||||
|
return
|
||||||
|
|
||||||
def addUpdateEntry(self, tag: str, name: str, iItem: IndexItem, hItem: IndexHeading) -> None:
|
def addUpdateEntry(self, tag: str, name: str, iItem: IndexItem, hItem: IndexHeading) -> None:
|
||||||
"""Add a new entry, or update an existing one."""
|
"""Add a new entry, or update an existing one."""
|
||||||
nwItem = iItem.item
|
nwItem = iItem.item
|
||||||
|
|||||||
Reference in New Issue
Block a user