Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.9, 1.9.1, and 1.9.2

revdisplay: kill setEditable()

Changeset d3f5a5a198bd

Parent 9bb6a220de17

by Adrian Buehlmann

Changes to one file · Browse files at d3f5a5a198bd Showing diff from parent 9bb6a220de17 Diff from another changeset...

 
194
195
196
197
198
199
200
 
292
293
294
295
296
297
298
299
300
301
302
303
 
 
304
305
306
 
194
195
196
 
197
198
199
 
291
292
293
 
 
 
294
295
296
297
298
299
300
301
302
303
304
@@ -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())