Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 2.0.3, 2.0.4, and 2.0.5

stable postreview: added settings button signal and force reload settings immediately

Changeset 77b541ba8ecb

Parent 68a7b0de052a

by Michael De Wildt

Changes to 2 files · Browse files at 77b541ba8ecb Showing diff from parent 68a7b0de052a Diff from another changeset...

 
383
384
385
386
387
 
 
 
 
 
388
389
390
 
383
384
385
 
 
386
387
388
389
390
391
392
393
@@ -383,8 +383,11 @@
  @pyqtSlot()   def onSettingsButtonClicked(self):   from tortoisehg.hgqt import settings - - settings.SettingsDialog(parent=self, focus='reviewboard.server').exec_() + if settings.SettingsDialog(parent=self, focus='reviewboard.server').exec_(): + # not use repo.configChanged because it can clobber user input + # accidentally. + self.repo.invalidateui() # force reloading config immediately + self.readSettings()    def run(ui, *pats, **opts):   revs = opts.get('rev') or None
 
338
339
340
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
341
342
343
 
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
@@ -338,6 +338,22 @@
  </hints>   </connection>   <connection> + <sender>settings_button</sender> + <signal>clicked()</signal> + <receiver>PostReviewDialog</receiver> + <slot>onSettingsButtonClicked()</slot> + <hints> + <hint type="sourcelabel"> + <x>20</x> + <y>20</y> + </hint> + <hint type="destinationlabel"> + <x>20</x> + <y>20</y> + </hint> + </hints> + </connection> + <connection>   <sender>close_button</sender>   <signal>clicked()</signal>   <receiver>PostReviewDialog</receiver>