* src/gramps_main.py: rebuild tree after importing
* src/plugins/ReadGedcom.py: destroy filechooser at proper time svn: r3129
This commit is contained in:
parent
df37c5296f
commit
9bf7f3a5e1
@ -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.
|
||||
|
@ -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)
|
||||
|
@ -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"""
|
||||
|
@ -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()
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user