* 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>
* src/plugins/DetDescendantReport.py (get_xpm_image): Remove
function, import it from Utils.py instead.

View File

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

View File

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

View File

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