* 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:
		@@ -1,3 +1,8 @@
 | 
				
			|||||||
 | 
					2006-10-06  Martin Hawlisch  <Martin.Hawlisch@gmx.de>
 | 
				
			||||||
 | 
						* src/PluginUtils/_Plugins.py: ignore pressing apply without
 | 
				
			||||||
 | 
						a plugin being selected
 | 
				
			||||||
 | 
						* src/plugins/SoundGen.py: Dont fail with empty database
 | 
				
			||||||
 | 
					
 | 
				
			||||||
2006-10-06  Alex Roitman  <shura@gramps-project.org>
 | 
					2006-10-06  Alex Roitman  <shura@gramps-project.org>
 | 
				
			||||||
	* src/GrampsDb/_GrampsBSDDB.py (GrampsBSDDB.load): Do not create
 | 
						* src/GrampsDb/_GrampsBSDDB.py (GrampsBSDDB.load): Do not create
 | 
				
			||||||
	logs when TXN is disabled.
 | 
						logs when TXN is disabled.
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -144,17 +144,19 @@ class PluginDialog(ManagedWindow.ManagedWindow):
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    def on_apply_clicked(self,obj):
 | 
					    def on_apply_clicked(self,obj):
 | 
				
			||||||
        """Execute the selected report"""
 | 
					        """Execute the selected report"""
 | 
				
			||||||
 | 
					        try:
 | 
				
			||||||
        (item_class,options_class,title,category,
 | 
					            (item_class,options_class,title,category,
 | 
				
			||||||
         name,require_active) = self.item
 | 
					             name,require_active) = self.item
 | 
				
			||||||
        if self.content == REPORTS:
 | 
					            if self.content == REPORTS:
 | 
				
			||||||
            report(self.state,self.uistate,self.state.active,
 | 
					                report(self.state,self.uistate,self.state.active,
 | 
				
			||||||
                   item_class,options_class,title,name,category,require_active)
 | 
					                       item_class,options_class,title,name,category,require_active)
 | 
				
			||||||
        else:
 | 
					            else:
 | 
				
			||||||
            _Tool.gui_tool(self.state,self.uistate, 
 | 
					                _Tool.gui_tool(self.state,self.uistate, 
 | 
				
			||||||
                          item_class,options_class,title,name,category,
 | 
					                              item_class,options_class,title,name,category,
 | 
				
			||||||
                          self.state.db.request_rebuild)
 | 
					                              self.state.db.request_rebuild)
 | 
				
			||||||
 | 
					        except TypeError:
 | 
				
			||||||
 | 
					            pass # ignore pressing apply without a plugin being selected
 | 
				
			||||||
 | 
					        
 | 
				
			||||||
    def on_node_selected(self,obj):
 | 
					    def on_node_selected(self,obj):
 | 
				
			||||||
        """Updates the informational display on the right hand side of
 | 
					        """Updates the informational display on the right hand side of
 | 
				
			||||||
        the dialog box with the description of the selected report"""
 | 
					        the dialog box with the description of the selected report"""
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -79,6 +79,7 @@ class SoundGen(Tool.Tool, ManagedWindow.ManagedWindow):
 | 
				
			|||||||
        self.name.connect('changed',self.on_apply_clicked)
 | 
					        self.name.connect('changed',self.on_apply_clicked)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        names = []
 | 
					        names = []
 | 
				
			||||||
 | 
					        person = None
 | 
				
			||||||
        for person_handle in self.db.get_person_handles(sort_handles=False):
 | 
					        for person_handle in self.db.get_person_handles(sort_handles=False):
 | 
				
			||||||
            person = self.db.get_person_from_handle(person_handle)
 | 
					            person = self.db.get_person_from_handle(person_handle)
 | 
				
			||||||
            lastname = person.get_primary_name().get_surname()
 | 
					            lastname = person.get_primary_name().get_surname()
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user