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

stable guess: connect showDiff to selectionChanged events (fixes #206)

Changeset 1bb2fad76914

Parent 37c3f4e1e3e1

by Phil Currier

Changes to one file · Browse files at 1bb2fad76914 Showing diff from parent 37c3f4e1e3e1 Diff from another changeset...

 
104
105
106
107
 
108
109
110
 
224
225
226
 
 
 
 
227
228
229
 
104
105
106
 
107
108
109
110
 
224
225
226
227
228
229
230
231
232
233
@@ -104,7 +104,7 @@
  matchtv.setRootIsDecorated(False)   matchtv.setModel(MatchModel())   matchtv.setSortingEnabled(True) - matchtv.clicked.connect(self.showDiff) + matchtv.selectionModel().selectionChanged.connect(self.showDiff)   buthbox = QHBoxLayout()   matchbtn = QPushButton(_('Accept Selected Matches'))   matchbtn.clicked.connect(self.acceptMatch) @@ -224,6 +224,10 @@
    def showDiff(self, index):   'User selected a row in the candidate tree' + indexes = index.indexes() + if not indexes: + return + index = indexes[0]   ctx = self.repo['.']   hu = htmlui.htmlui()   row = self.matchtv.model().getRow(index)