Revision: 18412
          http://bibdesk.svn.sourceforge.net/bibdesk/?rev=18412&view=rev
Author:   hofman
Date:     2012-01-17 13:04:28 +0000 (Tue, 17 Jan 2012)
Log Message:
-----------
retain filer error controller while the window is shown, otherwise it will be 
removed immediately

Modified Paths:
--------------
    trunk/bibdesk/BDSKFilerErrorController.m

Modified: trunk/bibdesk/BDSKFilerErrorController.m
===================================================================
--- trunk/bibdesk/BDSKFilerErrorController.m    2012-01-17 07:34:31 UTC (rev 
18411)
+++ trunk/bibdesk/BDSKFilerErrorController.m    2012-01-17 13:04:28 UTC (rev 
18412)
@@ -96,12 +96,16 @@
        
     [tv setDoubleAction:@selector(showFile:)];
        [tv setTarget:self];
+    
+    // we have to stay around until the window closes, also see the two 
actions below
+    [self retain];
 }
 
 #pragma mark Actions
 
 - (IBAction)done:(id)sender{
-    [[self window] performClose:sender];
+    [self close];
+    [self autorelease];
 }
 
 - (IBAction)tryAgain:(id)sender{
@@ -125,9 +129,11 @@
     BDSKFilerOptions mask = (options & BDSKInitialAutoFileOptionMask);
     mask |= ([forceCheckButton state]) ? BDSKForceAutoFileOptionMask : 
(options & BDSKCheckCompleteAutoFileOptionMask);
     
-    [[self window] performClose:sender];
+    [self close];
     
     [[BDSKFiler sharedFiler] movePapers:fileInfoDicts forField:field 
fromDocument:doc options:mask];
+    
+    [self autorelease];
 }
 
 - (IBAction)dump:(id)sender{

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to