Changeset 16 for trunk/gui/printer


Ignore:
Timestamp:
Oct 14, 2012, 2:03:22 AM (13 years ago)
Author:
Alex Taylor
Message:

Should now fail gracefully (instead of crashing) if no PM printer drivers are found. Also fixed typo causing syntax error in SW_MODEL_Init.

Location:
trunk/gui/printer/cupswiz
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/gui/printer/cupswiz/cupswiz.VRX

    r14 r16  
    300300
    301301    /* Now create the OS/2 printer object */
    302     IF create_os2 == 1 THEN DO
     302    IF create_os2 == 1 & globals.!os2driver <> '' THEN DO
    303303
    304304        /* Make sure the presentation driver supports the printer */
     
    16441644        CALL VRSet 'DDCB_PRESDRV', 'Selected', def_idx
    16451645    END
     1646    ELSE DO
     1647        CALL VRMessage VRWindow(), 'No eCups-compatible OS/2 presentation drivers are installed.',
     1648                       '0d0a0d0a'x || 'Please install the ECUPS or ECUPS-HP printer driver before continuing.',,
     1649                       'Missing PM Driver', 'E'
     1650        CALL VRSet 'PB_CREATEOK', 'Enabled', 0
    16461651    /* TODO give an error if no drivers were found */
     1652    END
    16471653
    16481654    window = VRInfo( "Object" )
     
    16881694    ok = VRMethod( "LB_OS2MODELS", "AddStringList", "models.",  )
    16891695    IF best > 0 THEN
    1690         CALL VRSet 'LP_OS2MODELS', 'Selected', best
     1696        CALL VRSet 'LB_OS2MODELS', 'Selected', best
    16911697
    16921698    CALL VRSet 'DT_MODEL1', 'Caption',,
Note: See TracChangeset for help on using the changeset viewer.