* src/EditPlace.py, src/EditSource.py: Detect new objects by handle.
svn: r4774
This commit is contained in:
parent
aa1fb05e26
commit
493be971c2
@ -11,6 +11,8 @@
|
||||
display_references using idle_add; (display_references): set
|
||||
cursor when done.
|
||||
|
||||
* src/EditPlace.py, src/EditSource.py: Detect new objects by handle.
|
||||
|
||||
2005-06-03 Jens Arvidsson <jya@sverige.nu>
|
||||
* src/po/sv.po: Minor fixes found via pochkpyvar.pl.
|
||||
|
||||
|
@ -67,8 +67,10 @@ class EditPlace:
|
||||
return
|
||||
else:
|
||||
self.win_key = place.get_handle()
|
||||
self.ref_not_loaded = 1
|
||||
else:
|
||||
self.win_key = self
|
||||
self.ref_not_loaded = 0
|
||||
self.name_display = NameDisplay.displayer.display
|
||||
self.place = place
|
||||
self.db = parent.db
|
||||
@ -78,10 +80,8 @@ class EditPlace:
|
||||
self.lists_changed = 0
|
||||
if place:
|
||||
self.srcreflist = place.get_source_references()
|
||||
self.ref_not_loaded = 1
|
||||
else:
|
||||
self.srcreflist = []
|
||||
self.ref_not_loaded = 0
|
||||
|
||||
self.top_window = gtk.glade.XML(const.placesFile,"placeEditor","gramps")
|
||||
self.top = self.top_window.get_widget("placeEditor")
|
||||
|
@ -59,9 +59,11 @@ class EditSource:
|
||||
def __init__(self,source,db,parent,parent_window=None,readonly=False):
|
||||
if source:
|
||||
self.source = source
|
||||
self.ref_not_loaded = 1
|
||||
else:
|
||||
self.source = RelLib.Source()
|
||||
if self.source.get_handle():
|
||||
self.ref_not_loaded = 1
|
||||
else:
|
||||
self.ref_not_loaded = 0
|
||||
self.db = db
|
||||
self.parent = parent
|
||||
|
Loading…
Reference in New Issue
Block a user