mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 06:50:48 +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
|
@ -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…
Add table
Add a link
Reference in a new issue