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

status: treeview should ignore row activations when control is pressed

Changeset 1384c027496c

Parent 26c469dbb148

by Steve Borho

Changes to one file · Browse files at 1384c027496c Showing diff from parent 26c469dbb148 Diff from another changeset...

 
24
25
26
27
28
29
30
 
651
652
653
 
 
 
 
654
655
656
 
24
25
26
 
27
28
29
 
650
651
652
653
654
655
656
657
658
659
@@ -24,7 +24,6 @@
 # We need a real icon set for file status types  # Thread rowSelected, connect to an external progress bar  # Chunk selection, tri-state checkboxes for commit -# TreeView steals CTRL-ENTER from parent widgets  # Maybe, Maybe Not  # Investigate folding/nesting of files  # Toolbar @@ -651,6 +650,10 @@
    def toggleRow(self, index):   'Connected to "activated" signal, emitted by dbl-click or enter' + if QApplication.keyboardModifiers() & Qt.ControlModifier: + # ignore Ctrl-Enter events, the user does not want a row + # toggled just as they are committing. + return   assert index.isValid()   fname = self.rows[index.row()][COL_PATH]   self.emit(SIGNAL("layoutAboutToBeChanged()"))