Use dummy printer in printer name list, if no CUPS printers are found.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@20564 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2005-01-16 13:22:46 +00:00
parent 310d3464fd
commit e8edab4d25
2 changed files with 11 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2005-01-16 Fred Kiefer <FredKiefer@gmx.de>
* Printing/GSCUPS/GSCUPSPrinter.m (+printerNames): Add dummy
printer to list, if no printers are found.
2005-01-16 06:39 Gregory John Casamento <greg_casamento@yahoo.com>
* Source/NSDocument.m: In validateMenuItem: added code to

View file

@ -165,6 +165,12 @@ static BOOL didWarn;
cupsFreeDests( numDests, dests );
// No printer found, return at least the dummy printer
if ([set count] == 0)
{
[set addObject: GSCUPSDummyPrinterName];
}
return [set allObjects];
}