Restore default expansion after unselecting 'Limit results to current function' checkbox.

This commit is contained in:
winniepe
2020-08-30 16:48:51 +00:00
parent 19e5e9b766
commit 7c27af8868
2 changed files with 1 additions and 2 deletions

View File

@@ -65,7 +65,6 @@ class CapaExplorerQtreeView(QtWidgets.QTreeView):
def resize_columns_to_content(self):
""" reset view columns to contents """
self.header().resizeSections(QtWidgets.QHeaderView.ResizeToContents)
self.expandToDepth(0)
def map_index_to_source_item(self, model_index):
"""map proxy model index to source model item

View File

@@ -529,7 +529,7 @@ class CapaExplorerForm(idaapi.PluginForm):
else:
self.model_proxy.reset_address_range_filter()
self.view_tree.resize_columns_to_content()
self.view_tree.reset()
def limit_results_to_function(self, f):
"""add filter to limit results to current function