diff --git a/gramps2/src/SourceView.py b/gramps2/src/SourceView.py index 1a4bedcd8..18473614e 100644 --- a/gramps2/src/SourceView.py +++ b/gramps2/src/SourceView.py @@ -203,13 +203,14 @@ class SourceView: def update_display(self,source): self.model.update_row_by_handle(source.get_handle()) + def blist(self,store,path,iter,list): + handle = store.get_value(iter,_HANDLE_COL) + list.append(handle) + def merge(self): - ErrorDialog("NOT IMPLEMENTED", - "Need to correct SourceView.merge method.") - return mlist = [] self.selection.selected_foreach(self.blist,mlist) - + if len(mlist) != 2: msg = _("Cannot merge sources.") msg2 = _("Exactly two sources must be selected to perform a merge. "