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

sync: make opbuttons more selective

Disabling a toolbar and enabling a single action does not have the same effect
as disabling a layout of widgets and enabling a single of them. The entire
toolbar remains disabled.

Changeset 9329ee2ae964

Parent b9fe4f2d1170

by Steve Borho

Changes to one file · Browse files at 9329ee2ae964 Showing diff from parent b9fe4f2d1170 Diff from another changeset...

 
82
83
84
 
85
86
87
 
97
98
99
 
100
101
102
103
 
104
105
106
 
174
175
176
177
 
178
179
180
 
82
83
84
85
86
87
88
 
98
99
100
101
102
103
104
 
105
106
107
108
 
176
177
178
 
179
180
181
182
@@ -82,6 +82,7 @@
  else:   self.p4pbutton = None   tb = QToolBar(self) + sactions = []   for tip, icon, cb in (   (_('Preview incoming changesets from specified URL'),   'incoming', self.inclicked), @@ -97,10 +98,11 @@
  a.setToolTip(tip)   a.setIcon(qtlib.geticon(icon))   a.triggered.connect(cb) + sactions.append(a)   tb.addAction(a)   self.stopAction = a = QAction(self)   a.setToolTip(_('Stop current operation')) - a.setIcon(qtlib.geticon(process-stop)) + a.setIcon(qtlib.geticon('process-stop'))   a.triggered.connect(self.stopclicked)   tb.addAction(a)   tb.setMaximumHeight(self.postpullbutton.sizeHint().height()) @@ -174,7 +176,7 @@
  self.postpullbutton.clicked.connect(self.postpullclicked)   self.detailsbutton.pressed.connect(self.details)   - self.opbuttons = (tb, self.p4pbutton) + self.opbuttons = sactions + [self.p4pbutton]     cmd = cmdui.Widget(not embedded, self)   cmd.commandStarted.connect(self.commandStarted)