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

stable visdiff: add CTRL+D shortcut for row activation

Changeset a90731f03e5c

Parent d3cf9526e37b

by Steve Borho

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

 
360
361
362
363
364
365
366
 
441
442
443
 
444
445
446
 
497
498
499
 
 
 
 
 
 
500
501
502
 
360
361
362
 
363
364
365
 
440
441
442
443
444
445
446
 
497
498
499
500
501
502
503
504
505
506
507
508
@@ -360,7 +360,6 @@
  QDialog.__init__(self)   self.curFile = None   - # TODO: Connect CTRL-D to row activation   self.setWindowIcon(qtlib.geticon('visualdiff'))     if ctx2.rev() is None: @@ -441,6 +440,7 @@
  self.updateDiffButtons(preferred)     callable = lambda: self.fillmodel(repo, sa, sb) + QShortcut(QKeySequence('CTRL+D'), self.list, self.activateCurrent)   QTimer.singleShot(0, callable)     def fillmodel(self, repo, sa, sb): @@ -497,6 +497,12 @@
  if name == selected:   combo.setCurrentIndex(i)   + def activateCurrent(self): + 'CTRL+D has been pressed' + row = self.list.currentRow() + if row >= 0: + self.launch(self.list.item(row).text()[2:]) +   def itemActivated(self, item):   'A QListWidgetItem has been activated'   self.launch(item.text()[2:])