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

stable repofilter: fix a few bad behaviors

Execute a query when it is selected from the history
Fix return pressed behavior

Changeset 679016deb4b9

Parent c9bd7b2c0078

by Steve Borho

Changes to one file · Browse files at 679016deb4b9 Showing diff from parent c9bd7b2c0078 Diff from another changeset...

 
50
51
52
53
 
54
55
56
 
127
128
129
 
 
 
 
 
 
 
130
131
132
133
 
134
135
136
 
50
51
52
 
53
54
55
56
 
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
@@ -50,7 +50,7 @@
  le.selectionChanged.connect(self.selectionChanged)   if hasattr(le, 'setPlaceholderText'): # Qt >= 4.7   le.setPlaceholderText(_('### revision set query ###')) - combo.activated.connect(le.selectAll) + combo.activated.connect(self.comboSelectionActivated)   self.revsetle = le     self.clearBtn = QToolButton(self) @@ -127,10 +127,18 @@
  self.entrydlg.entry.setFocus()   self.entrydlg.setShown(True)   + @pyqtSlot(int) + def comboSelectionActivated(self, row): + text = self.revsetcombo.itemText(row) + self.revsetcombo.lineEdit().setText(text) + self.entrydlg.entry.setText(text) + self.entrydlg.runQuery() +   def queryIssued(self, query, revset):   self.revsetcombo.lineEdit().setText(query)   self.setRevisionSet.emit(revset)   self.saveQuery() + self.revsetcombo.lineEdit().selectAll()     def returnPressed(self):   'Return pressed on revset line entry, forward to dialog'