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

 
 

You are not allowed to post comments on this tracker with your current authentication level.

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

Submitted by:  Nikolaus Waxweiler <madleser>
Submitted on:  Sat 11 Feb 2006 05:27:15 PM UTC  
 
Category: Gui/AppKitSeverity: 3 - Normal
Item Group: BugStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed

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

Fixed by Richard in SVN

Fred Kiefer <FredKiefer>
Project 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>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 2 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Mon 27 Mar 2006 01:28:11 PM UTCFredKieferStatusNone=>Fixed
  Open/ClosedOpen=>Closed

Back to the top


Powered by Savane 3.1-cleanup1