Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 2.0, 2.0.1, and 2.0.2

stable filelistmodel: always reload if ctx is workingctx

Changeset cada9dba5b57

Parent fecdaea4d009

by Steve Borho

Changes to one file · Browse files at cada9dba5b57 Showing diff from parent fecdaea4d009 Diff from another changeset...

 
69
70
71
72
 
 
 
 
 
 
 
 
73
74
75
 
69
70
71
 
72
73
74
75
76
77
78
79
80
81
82
@@ -69,7 +69,14 @@
    def setContext(self, ctx):   self.contextChanged.emit(ctx) - if not self._ctx or ctx.thgid() != self._ctx.thgid(): + reload = False + if not self._ctx: + reload = True + elif self._ctx.rev() is None: + reload = True + elif ctx.thgid() != self._ctx.thgid(): + reload = True + if reload:   self._ctx = ctx   self.loadFiles()   self.layoutChanged.emit()