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
Priority:  5 - Normal Item Group:  Bug
Status:  Fixed Privacy:  Public
Assigned to:  None Open/Closed:  Closed
* Mandatory Fields

Post a Comment

Add a New Comment Rich Markup
   

Discussion

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>

 

Attached Files

This item currently has no attached files.

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

Attach Files:
   
   
Comment:
   

 

Dependencies

This item does not depend on any other items.

No items depend on this one.

 

Mail Notification Carbon-Copy List

 

Votes

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.

 

History

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.16-ed84.
Corresponding source code