Changeset c05885cdcd37…
Parent 9e5318ce20a5…
by
Changes to one file · Browse files at c05885cdcd37 Showing diff from parent 9e5318ce20a5 Diff from another changeset...
@@ -114,14 +114,14 @@ return nullvariant
row = index.row()
col = index.column()
- if (row, col, role) in self._datacache:
- return self._datacache[(row, col, role)]
+ if (row, col, role) in self.datacache:
+ return self.datacache[(row, col, role)]
try:
result = meth(self, index, role)
except util.Abort:
result = nullvariant
if result is not nullvariant:
- self._datacache[(row, col, role)] = result
+ self.datacache[(row, col, role)] = result
return result
return data
@@ -138,7 +138,7 @@ repo is a hg repo instance
"""
QAbstractTableModel.__init__(self, parent)
- self._datacache = {}
+ self.datacache = {}
self._hasmq = False
self.mqueues = []
self.wd_revs = []
@@ -155,7 +155,7 @@ self._branch = branch
if oldrepo.root != repo.root:
self.reloadConfig()
- self._datacache = {}
+ self.datacache = {}
try:
wdctxs = self.repo.changectx(None).parents()
except error.Abort:
@@ -416,5 +416,5 @@ def clear(self):
'empty the list'
self.graph = None
- self._datacache = {}
+ self.datacache = {}
self.emit(SIGNAL("layoutChanged()"))
|
Loading...