mirror of
https://github.com/mandiant/capa.git
synced 2025-12-12 15:49:46 -08:00
Restore default expansion after unselecting 'Limit results to current function' checkbox.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user