bugGNUstep - Bugs: bug #15710, PrinterPanel -> Preview button...

Group
 
 

bug #15710: PrinterPanel -> Preview button -> Uncaught exception when no previewing app can be executed

Submitter:  Nikolaus Waxweiler <madleser>
Submitted:  Sat 11 Feb 2006 05:27:15 PM UTC
   
 
Category:  Gui/AppKit Severity:  3 - Normal
Item Group:  Bug Status:  Fixed
Privacy:  Public Assigned to:  None
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 27 Mar 2006 01:28:11 PM UTC, comment #1: 

Fixed by Richard in SVN

Fred Kiefer <FredKiefer>
Group Member
Sat 11 Feb 2006 05:27:15 PM UTC, original submission:  

When no previewing application is found, "gv" is set as the default app, but nothing is done to check if gv is actually installed. A solution would be to replace gnustep/libs/gui/trunk/Source/GSPrintOperation.m, line 147 ("[task launch];") with:

          if ([task validatedLaunchPath])
            {
              [task launch];
            }
          else
           {
             /* XXX: Let the user specify something, check if it exists and save it to standardUserDefaults? */
             NSRunAlertPanel(@"Error", @"Could not find a previewing application.",
                             @"OK", NULL, NULL);
             success = NO;
           }

A possible interface-design problem with this is that when clicking "OK", the PrintPanel disappears, so the check would have to be implemented in NSPrintPanel.m.
Uh.. but maybe it's not an issue. No idea.

Nikolaus Waxweiler <madleser>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

Only logged-in users can vote.

 

Follow 2 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2006-03-27 FredKiefer StatusNone Fixed
    Open/ClosedOpen Closed

Back to the top

Powered by Savane 3.13-caa5.
Corresponding source code