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

Merge with stable

Changeset e631d4af058e

Parents d7cd3090d424

Parents 37c3f4e1e3e1

by Steve Borho

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

 
302
303
304
305
 
306
307
308
 
460
461
462
463
464
 
465
466
467
 
644
645
646
647
 
648
649
650
651
652
653
654
655
656
 
 
 
 
657
658
659
 
302
303
304
 
305
306
307
308
 
460
461
462
 
 
463
464
465
466
 
643
644
645
 
646
647
648
649
650
651
 
 
652
 
653
654
655
656
657
658
659
@@ -302,7 +302,7 @@
  def onRowClicked(self, index):   'tree view emitted a clicked signal, index guarunteed valid'   if index.column() == COL_PATH: - self.tv.model().toggleRow(index) + self.tv.model().toggleRows([index])     # Disabled decorator because of bug in older PyQt releases   #@pyqtSlot(QModelIndex) @@ -460,8 +460,7 @@
    def keyPressEvent(self, event):   if event.key() == 32: - for index in self.selectedRows(): - self.model().toggleRow(index) + self.model().toggleRows(self.selectedRows())   return super(WctxFileTree, self).keyPressEvent(event)     def dragObject(self): @@ -644,16 +643,17 @@
  for row in self.rows:   yield row   - def toggleRow(self, index): + def toggleRows(self, indexes):   '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.layoutAboutToBeChanged.emit() - self.checked[fname] = not self.checked[fname] + for index in indexes: + assert index.isValid() + fname = self.rows[index.row()][COL_PATH] + self.checked[fname] = not self.checked[fname]   self.layoutChanged.emit()   self.checkToggled.emit()