src/ldObject.cc

changeset 881
82a9c3549db1
parent 880
5dcd2e741d1c
child 882
2f3cc8e045d5
equal deleted inserted replaced
880:5dcd2e741d1c 881:82a9c3549db1
306 // Don't bother during program termination 306 // Don't bother during program termination
307 if (IsExiting() or isDestructed()) 307 if (IsExiting() or isDestructed())
308 return; 308 return;
309 309
310 // If this object was selected, unselect it now 310 // If this object was selected, unselect it now
311 if (isSelected()) 311 if (isSelected() and document() != null)
312 deselect(); 312 deselect();
313 313
314 // If this object was associated to a file, remove it off it now 314 // If this object was associated to a file, remove it off it now
315 if (document() != null) 315 if (document() != null)
316 document().toStrongRef()->forgetObject (self()); 316 document().toStrongRef()->forgetObject (self());

mercurial