* src/PluginUtils/_Plugins.py: ignore pressing apply without a plugin being selected

* src/plugins/SoundGen.py: Dont fail with empty database



svn: r7359
This commit is contained in:
Martin Hawlisch
2006-10-06 19:10:15 +00:00
parent 065b48569f
commit 1845a32618
3 changed files with 19 additions and 11 deletions

View File

@@ -79,6 +79,7 @@ class SoundGen(Tool.Tool, ManagedWindow.ManagedWindow):
self.name.connect('changed',self.on_apply_clicked)
names = []
person = None
for person_handle in self.db.get_person_handles(sort_handles=False):
person = self.db.get_person_from_handle(person_handle)
lastname = person.get_primary_name().get_surname()