* src/EditPlace.py, src/EditSource.py: Detect new objects by handle.

svn: r4774
This commit is contained in:
Alex Roitman
2005-06-03 15:36:24 +00:00
parent aa1fb05e26
commit 493be971c2
3 changed files with 7 additions and 3 deletions

View File

@@ -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