Do not load the user template functions for second DBs

This commit is contained in:
Charles Haley 2011-10-19 07:58:47 +02:00
parent 9548696089
commit 4c1d505b68

View File

@ -302,6 +302,7 @@ class LibraryDatabase2(LibraryDatabase, SchemaUpgrade, CustomColumns):
if cats_changed:
self.prefs.set('user_categories', user_cats)
if not self.is_second_db:
load_user_template_functions(self.prefs.get('user_template_functions', []))
self.conn.executescript('''