Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 2.1, 2.1.1, and 2.1.2

stable status: double click signal was redundant with default wctxaction (fixes #848)

Changeset 90e1cc693356

Parent 19b52bb5ca15

by Steve Borho

Changes to one file · Browse files at 90e1cc693356 Showing diff from parent 19b52bb5ca15 Diff from another changeset...

 
459
460
461
462
463
464
465
 
467
468
469
470
471
472
473
474
475
476
477
478
479
480
 
459
460
461
 
462
463
464
 
466
467
468
 
 
 
 
 
 
 
 
469
470
471
@@ -459,7 +459,6 @@
  self.setContextMenuPolicy(Qt.CustomContextMenu)   self.customContextMenuRequested.connect(self.menuRequested)   self.setTextElideMode(Qt.ElideLeft) - self.doubleClicked.connect(self.onDoubleClick)     def scrollTo(self, index, hint=QAbstractItemView.EnsureVisible):   # don't update horizontal position by selection change @@ -467,14 +466,6 @@
  super(WctxFileTree, self).scrollTo(index, hint)   self.horizontalScrollBar().setValue(orighoriz)   - def onDoubleClick(self, index): - if not index.isValid(): - return - path = self.model().getRow(index)[COL_PATH] - dlg = visdiff.visualdiff(self.repo.ui, self.repo, [path], {}) - if dlg: - dlg.exec_() -   def keyPressEvent(self, event):   if event.key() == 32:   self.model().toggleRows(self.selectedRows())