def reload(self):
    current_row = self.currentRow()
    self.clearContents()
    self.items = [QPatchTableItem(item, self._get_bytes(self.instance.project, item.addr, len(item))) for item in self.instance.project.kb.patches.values()]
    items_count = len(self.items)
    self.setRowCount(items_count)
    for (idx, item) in enumerate(self.items):
        for (i, it) in enumerate(item.widgets()):
            self.setItem(idx, i, it)
def reload(self):
    current_row = self.currentRow()
    self.clearContents()
    self.items = [QPatchTableItem(item, self._get_bytes(self.instance.project, item.addr, len(item))) for item in self.instance.project.kb.patches.values()]
    items_count = len(self.items)
    self.setRowCount(items_count)
    for (idx, item) in enumerate(self.items):
        for (i, it) in enumerate(item.widgets()):
            self.setItem(idx, i, it)