* src/gramps_main.py: rebuild tree after importing

* src/plugins/ReadGedcom.py: destroy filechooser at proper time


svn: r3129
This commit is contained in:
Don Allingham 2004-05-05 03:54:02 +00:00
parent df37c5296f
commit 9bf7f3a5e1
4 changed files with 13 additions and 5 deletions

View File

@ -1,3 +1,7 @@
2004-05-04 Don Allingham <donaldallingham@users.sourceforge.net>
* src/gramps_main.py: rebuild tree after importing
* src/plugins/ReadGedcom.py: destroy filechooser at proper time
2004-05-04 Alex Roitman <shura@alex.neuro.umn.edu> 2004-05-04 Alex Roitman <shura@alex.neuro.umn.edu>
* src/plugins/DetDescendantReport.py (get_xpm_image): Remove * src/plugins/DetDescendantReport.py (get_xpm_image): Remove
function, import it from Utils.py instead. function, import it from Utils.py instead.

View File

@ -67,7 +67,7 @@ class DbPrompter:
"on_open_cancel_clicked" : gtk.main_quit, "on_open_cancel_clicked" : gtk.main_quit,
"on_opendb_delete_event": gtk.main_quit, "on_opendb_delete_event": gtk.main_quit,
}) })
self.new = opendb.get_widget("new") self.new = opendb.get_widget("new")
if self.want_new: if self.want_new:
self.new.set_active(1) self.new.set_active(1)

View File

@ -941,13 +941,15 @@ class Gramps:
self.import_tool_callback() self.import_tool_callback()
def import_tool_callback(self): def import_tool_callback(self):
self.people_view.build_tree()
if Utils.wasHistory_broken(): if Utils.wasHistory_broken():
self.clear_history() self.clear_history()
Utils.clearHistory_broken() Utils.clearHistory_broken()
self.full_update() self.people_view.apply_filter()
self.goto_active_person()
if not self.active_person: if not self.active_person:
self.change_active_person(self.find_initial_person()) self.change_active_person(self.find_initial_person())
else:
self.goto_active_person()
def full_update(self): def full_update(self):
"""Brute force display update, updating all the pages""" """Brute force display update, updating all the pages"""

View File

@ -1768,15 +1768,17 @@ def readData(database,active_person,cb):
choose.add_filter(filter) choose.add_filter(filter)
response = choose.run() response = choose.run()
choose.destroy()
if response == gtk.RESPONSE_OK: if response == gtk.RESPONSE_OK:
filename = choose.get_filename() filename = choose.get_filename()
choose.destroy()
try: try:
importData(db,filename) importData(db,filename)
except: except:
import DisplayTrace import DisplayTrace
DisplayTrace.DisplayTrace() DisplayTrace.DisplayTrace()
else:
choose.destroy()
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
# #
# #