Changeset 06e6d11309f2…
Parent c43962dd33d2…
by
Changes to one file · Browse files at 06e6d11309f2 Showing diff from parent c43962dd33d2 Diff from another changeset...
@@ -67,6 +67,7 @@
self.tv = WctxFileTree(self.repo, split)
self.connect(self.tv, SIGNAL('clicked(QModelIndex)'), self.rowSelected)
+ self.connect(self.tv, SIGNAL('menuAction()'), self.refreshWctx)
self.te = QTextEdit(split)
self.te.document().setDefaultStyleSheet(qtlib.thgstylesheet)
@@ -81,13 +82,11 @@ split.setStretchFactor(1, 2)
self.refreshWctx()
- self.updateModel()
def keyPressEvent(self, event):
if event.key() == Qt.Key_F5:
self.te.clear()
self.refreshWctx()
- self.updateModel()
else:
return super(StatusWidget, self).keyPressEvent(event)
@@ -100,6 +99,7 @@ m = cmdutil.match(self.repo, self.pats)
status = self.repo.status(match=m, **stopts)
self.wctx = context.workingctx(self.repo, changes=status)
+ self.updateModel()
return
wctx = self.repo[None]
try:
@@ -111,6 +111,7 @@ except (OSError, IOError, util.Abort), e:
self.status_error = str(e)
self.wctx = wctx
+ self.updateModel()
def isMerge(self):
return bool(self.wctx.p2())
@@ -244,7 +245,7 @@ point = self.mapToGlobal(point)
action = wctxactions.wctxactions(self, point, self.repo, selrows)
if action:
- print action.text(), 'performed' # maybe should refresh
+ self.emit(SIGNAL('menuAction()'))
COL_CHECK = 0
COL_STATUS = 1
|
Loading...