Helpviewer/History/HistoryMenu.py

changeset 535
4b00d7336e19
parent 501
5c615a85241a
child 538
7f1a56e80124
equal deleted inserted replaced
533:bc6063d2ab83 535:4b00d7336e19
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