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

repowidget: move okToContinue() close to closeRepoWidget()

Changeset 069873f19947

Parent 9de7ce74e852

by Steve Borho

Changes to one file · Browse files at 069873f19947 Showing diff from parent 9de7ce74e852 Diff from another changeset...

 
498
499
500
501
502
503
504
505
506
507
 
520
521
522
 
 
 
 
523
524
525
 
498
499
500
 
 
 
 
501
502
503
 
516
517
518
519
520
521
522
523
524
525
@@ -498,10 +498,6 @@
  def filterbranch(self):   return self.repomodel.branch()   - def okToContinue(self): - return self.commitDemand.forward('canExit', default=True) and \ - self.syncDemand.forward('canExit', default=True) -   def switchedTo(self):   'Update back / forward actions'   self.repoview.updateActions() @@ -520,6 +516,10 @@
  self.repotabs_splitter.restoreState(   s.value('Workbench/repotabs_splitter').toByteArray())   + def okToContinue(self): + return self.commitDemand.forward('canExit', default=True) and \ + self.syncDemand.forward('canExit', default=True) +   def closeRepoWidget(self):   '''returns False if close should be aborted'''   if not self.okToContinue():