Helpviewer/History/HistoryMenu.py

branch
5_0_x
changeset 534
7d247a767510
parent 55
b5c84934de9c
child 792
a13346916170
equal deleted inserted replaced
530:ff77c9153c47 534:7d247a767510
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

eric ide

mercurial