Changeset ebe8a87050d1…
Parent 3bc81bfa6f34…
by
Changes to one file · Browse files at ebe8a87050d1 Showing diff from parent 3bc81bfa6f34 Diff from another changeset...
@@ -329,8 +329,11 @@ @pyqtSlot()
def on_settings_button_clicked(self):
from tortoisehg.hgqt import settings
- settings.SettingsDialog(parent=self, focus='email.from').exec_()
- # TODO: update form values and ui appropriately
+ if settings.SettingsDialog(parent=self, focus='email.from').exec_():
+ # not use repo.configChanged because it can clobber user input
+ # accidentally.
+ self._repo.invalidateui() # force reloading config immediately
+ self._filldefaults()
class _ChangesetsModel(QAbstractTableModel): # TODO: use component of log viewer?
_COLUMNS = [('rev', lambda ctx: '%d:%s' % (ctx.rev(), ctx)),
|
Loading...