8469: GUI allows multiple Find Duplicates, then faults
This commit is contained in:
parent
92709c2fb0
commit
f7c6acaec8
@ -122,7 +122,6 @@ class Merge(tool.Tool,ManagedWindow):
|
|||||||
self.menu.set_active(0)
|
self.menu.set_active(0)
|
||||||
|
|
||||||
window = top.toplevel
|
window = top.toplevel
|
||||||
window.show()
|
|
||||||
self.set_window(window, top.get_object('title'),
|
self.set_window(window, top.get_object('title'),
|
||||||
_('Find Possible Duplicate People'))
|
_('Find Possible Duplicate People'))
|
||||||
|
|
||||||
@ -164,7 +163,7 @@ class Merge(tool.Tool,ManagedWindow):
|
|||||||
try:
|
try:
|
||||||
self.find_potentials(threshold)
|
self.find_potentials(threshold)
|
||||||
except AttributeError as msg:
|
except AttributeError as msg:
|
||||||
RunDatabaseRepair(str(msg))
|
RunDatabaseRepair(str(msg), parent=self.window)
|
||||||
return
|
return
|
||||||
|
|
||||||
self.options.handler.options_dict['threshold'] = threshold
|
self.options.handler.options_dict['threshold'] = threshold
|
||||||
@ -186,8 +185,8 @@ class Merge(tool.Tool,ManagedWindow):
|
|||||||
|
|
||||||
def find_potentials(self, thresh):
|
def find_potentials(self, thresh):
|
||||||
self.progress = ProgressMeter(_('Find Duplicates'),
|
self.progress = ProgressMeter(_('Find Duplicates'),
|
||||||
_('Looking for duplicate people')
|
_('Looking for duplicate people'),
|
||||||
)
|
parent=self.window)
|
||||||
|
|
||||||
index = 0
|
index = 0
|
||||||
males = {}
|
males = {}
|
||||||
@ -550,7 +549,6 @@ class ShowMatches(ManagedWindow):
|
|||||||
|
|
||||||
top = Glade(toplevel="mergelist")
|
top = Glade(toplevel="mergelist")
|
||||||
window = top.toplevel
|
window = top.toplevel
|
||||||
window.show()
|
|
||||||
self.set_window(window, top.get_object('title'),
|
self.set_window(window, top.get_object('title'),
|
||||||
_('Potential Merges'))
|
_('Potential Merges'))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user