3687: Prevent multiple re-build of views when name format changed
svn: r14725
This commit is contained in:
parent
4aca1a8a3f
commit
623d5d43e5
@ -762,8 +762,6 @@ class ViewManager(CLIManager):
|
|||||||
"""
|
"""
|
||||||
try:
|
try:
|
||||||
GrampsPreferences(self.uistate, self.dbstate)
|
GrampsPreferences(self.uistate, self.dbstate)
|
||||||
self._key = self.uistate.connect('nameformat-changed',
|
|
||||||
self.active_page.build_tree)
|
|
||||||
except Errors.WindowActiveError:
|
except Errors.WindowActiveError:
|
||||||
return
|
return
|
||||||
|
|
||||||
@ -972,6 +970,8 @@ class ViewManager(CLIManager):
|
|||||||
self.active_page.set_active()
|
self.active_page.set_active()
|
||||||
self.notebook.set_current_page(current_cat)
|
self.notebook.set_current_page(current_cat)
|
||||||
self.notebook_cat[current_cat].set_current_page(current_cat_view)
|
self.notebook_cat[current_cat].set_current_page(current_cat_view)
|
||||||
|
self._key = self.uistate.connect('nameformat-changed',
|
||||||
|
self.active_page.build_tree)
|
||||||
else:
|
else:
|
||||||
#not one single view loaded
|
#not one single view loaded
|
||||||
WarningDialog(
|
WarningDialog(
|
||||||
|
Loading…
Reference in New Issue
Block a user