mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-22 18:11:06 +00:00
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:
parent
310d3464fd
commit
e8edab4d25
2 changed files with 11 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue