171 |
171 |
172 historyIndex = self.__treeModel.sourceModel().index(index.internalId(), 0) |
172 historyIndex = self.__treeModel.sourceModel().index(index.internalId(), 0) |
173 treeIndex = self.__treeModel.mapFromSource(historyIndex) |
173 treeIndex = self.__treeModel.mapFromSource(historyIndex) |
174 treeIndexParent = treeIndex.parent() |
174 treeIndexParent = treeIndex.parent() |
175 |
175 |
176 soureRow = self.sourceModel().mapToSource(treeIndexParent).row() |
176 sourceRow = self.sourceModel().mapToSource(treeIndexParent).row() |
177 bumpedItems = self.bumpedRows() |
177 bumpedItems = self.bumpedRows() |
178 if bumpedItems <= self.MOVEDROWS and \ |
178 if bumpedItems <= self.MOVEDROWS and \ |
179 bumpedItems == self.sourceModel().rowCount(self.sourceModel().index(0, 0)): |
179 bumpedItems == self.sourceModel().rowCount(self.sourceModel().index(0, 0)): |
180 bumpedItems -= 1 |
180 bumpedItems -= 1 |
181 |
181 |