#BUGFIX by cg
authorClaus Gittinger <cg@exept.de>
Wed, 21 Dec 2016 18:49:34 +0100
changeset 5390 c2fbe363e643
parent 5389 d704f9a06ca8
child 5391 4392c1cf3c16
child 5394 b7f114d946ad
#BUGFIX by cg class: PrintingDialog changed: #printers care for unsupported OS
PrintingDialog.st
--- a/PrintingDialog.st	Sun Dec 18 11:55:30 2016 +0100
+++ b/PrintingDialog.st	Wed Dec 21 18:49:34 2016 +0100
@@ -891,7 +891,11 @@
 
 printers
     printers isEmptyOrNil ifTrue:[
-        printers := OperatingSystem getPrinters
+        Error handle:[:ex |
+            printers := #().
+        ] do:[    
+            printers := OperatingSystem getPrinters
+        ].
     ].
     ^ printers