From: <ho...@us...> - 2009-06-23 15:53:06
|
Revision: 15448 http://bibdesk.svn.sourceforge.net/bibdesk/?rev=15448&view=rev Author: hofman Date: 2009-06-23 15:53:05 +0000 (Tue, 23 Jun 2009) Log Message: ----------- Make absolutely sure the editor is removed as editor when it closes Modified Paths: -------------- trunk/bibdesk/BDSKEditor.m Modified: trunk/bibdesk/BDSKEditor.m =================================================================== --- trunk/bibdesk/BDSKEditor.m 2009-06-23 11:49:14 UTC (rev 15447) +++ trunk/bibdesk/BDSKEditor.m 2009-06-23 15:53:05 UTC (rev 15448) @@ -2764,6 +2764,9 @@ // close so it's not hanging around by itself; this works if the doc window closes, also [complexStringEditor close]; + // make sure we're not registered as editor because we will be invalid, this shouldn't be necessary but there have been reports of crashes + [[self document] objectDidEndEditing:self]; + // this can give errors when the application quits when an editor window is open [[BDSKScriptHookManager sharedManager] runScriptHookWithName:BDSKCloseEditorWindowScriptHookName forPublications:[NSArray arrayWithObject:publication] This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |