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

update: add quitsignal

Changeset 1ef222ca78b3

Parent 0d8a8870162f

by Adrian Buehlmann

Changes to one file · Browse files at 1ef222ca78b3 Showing diff from parent 0d8a8870162f Diff from another changeset...

 
7
8
9
10
 
11
12
13
 
19
20
21
 
 
22
23
24
25
 
 
26
27
28
 
252
253
254
 
 
 
 
255
256
257
 
272
273
274
 
275
276
277
 
7
8
9
 
10
11
12
13
 
19
20
21
22
23
24
25
26
27
28
29
30
31
32
 
256
257
258
259
260
261
262
263
264
265
 
280
281
282
283
284
285
286
@@ -7,7 +7,7 @@
 # This software may be used and distributed according to the terms of the  # GNU General Public License version 2, incorporated herein by reference.   -from PyQt4.QtCore import Qt +from PyQt4.QtCore import Qt, pyqtSignal  from PyQt4.QtGui import QDialog, QDialogButtonBox, QVBoxLayout, QGridLayout  from PyQt4.QtGui import QComboBox, QLabel, QLayout, QCheckBox, QMessageBox   @@ -19,10 +19,14 @@
   class UpdateDialog(QDialog):   + quitsignal = pyqtSignal() +   def __init__(self, rev=None, repo=None, parent=None, opts=None):   super(UpdateDialog, self).__init__(parent, Qt.WindowTitleHint or   Qt.WindowSystemMenuHint)   + self.completed = False +   self.ui = ui.ui()   if repo:   self.repo = repo @@ -252,6 +256,10 @@
    ### Signal Handlers ###   + def reject(self): + self.quitsignal.emit() + super(UpdateDialog, self).reject() +   def cancel_clicked(self):   self.cmd.cancel()   @@ -272,6 +280,7 @@
  self.detail_btn.setShown(True)     def command_finished(self, wrapper): + self.completed = True   if wrapper.data is not 0 or self.cmd.is_show_output():   self.detail_btn.setChecked(True)   self.close_btn.setShown(True)