Changeset d3f5a5a198bd…
Parent 9bb6a220de17…
by
Changes to one file · Browse files at d3f5a5a198bd Showing diff from parent 9bb6a220de17 Diff from another changeset...
@@ -194,7 +194,6 @@ else:
self._commitbutton.setText(_('Commit'))
self._commitbutton.setVisible(enableci)
- self._message.setEditable(enableci)
buf = headerstyle
if self.mqpatch:
@@ -292,15 +291,14 @@ else:
QtGui.QDesktopServices.openUrl(qurl)
- def setEditable(self, editable):
- self._message.setReadOnly(not editable)
-
def text(self):
return str(self._message.toPlainText())
def displayRevision(self, ctx, mqpatch):
self.ctx = ctx
+ self._message.setReadOnly(ctx.rev() is not None)
+
if ctx.rev() is None and mqpatch:
ctx = ctx.p1()
self._message.setText(ctx.description())
|
Loading...