Skip to content
Snippets Groups Projects
Commit eebc6c97 authored by inso's avatar inso
Browse files

Fix left tree behaviour

parent b8b99d0a
No related branches found
No related tags found
No related merge requests found
......@@ -135,7 +135,6 @@ class NavigationController(QObject):
mapped = self.view.splitter.mapFromParent(point)
index = self.view.tree_view.indexAt(mapped)
raw_data = self.view.tree_view.model().data(index, GenericTreeModel.ROLE_RAW_DATA)
if raw_data and raw_data["component"] == "Informations":
menu = QMenu(self.view)
if raw_data['misc']['connection'].uid:
action_view_in_wot = QAction(self.tr("View in Web of Trust"), menu)
......
......@@ -166,5 +166,5 @@ class GenericTreeModel(QAbstractItemModel):
def insert_node(self, raw_data):
self.beginInsertRows(QModelIndex(), self.rowCount(QModelIndex()), 0)
parse_node(raw_data, self.root_item.children[0])
parse_node(raw_data, self.root_item)
self.endInsertRows()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment