115 @param item reference to the changed item (QTreeWidgetItem) |
115 @param item reference to the changed item (QTreeWidgetItem) |
116 @param column changed column (integer) |
116 @param column changed column (integer) |
117 """ |
117 """ |
118 if column == GitPushDialog.PushColumn: |
118 if column == GitPushDialog.PushColumn: |
119 # step 1: set the item's remote branch, if it is empty |
119 # step 1: set the item's remote branch, if it is empty |
120 if item.checkState(GitPushDialog.PushColumn) == Qt.Checked and \ |
120 if ( |
|
121 item.checkState(GitPushDialog.PushColumn) == Qt.Checked and |
121 (self.branchesTree.itemWidget( |
122 (self.branchesTree.itemWidget( |
122 item, |
123 item, |
123 GitPushDialog.RemoteBranchColumn) |
124 GitPushDialog.RemoteBranchColumn |
124 .currentText() == ""): |
125 ).currentText() == "") |
|
126 ): |
125 self.branchesTree.itemWidget( |
127 self.branchesTree.itemWidget( |
126 item, GitPushDialog.RemoteBranchColumn).setEditText( |
128 item, GitPushDialog.RemoteBranchColumn).setEditText( |
127 item.text(GitPushDialog.LocalBranchColumn)) |
129 item.text(GitPushDialog.LocalBranchColumn)) |
128 |
130 |
129 # step 2: count checked items |
131 # step 2: count checked items |