def query_model(self, model_index): """Update information about a directory as it is expanded.""" item = self.view.item_from_index(model_index) path = item.path if path in self.updated: return self.updated.add(path) GitRepoEntryManager.entry(path).update() entry = GitRepoEntryManager.entry for row in range(item.rowCount()): path = item.child(row, 0).path entry(path).update()