Changeset 31


Ignore:
Timestamp:
Apr 17, 2013, 6:02:19 PM (12 years ago)
Author:
Alex Taylor
Message:

Fix bug in saving network dialog fields.

File:
1 edited

Legend:

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

    r30 r31  
    477477/*:VRX         EF_SERVER_LostFocus
    478478*/
    479 EF_SERVER_LostFocus: PROCEDURE EXPOSE globals.
     479EF_SERVER_LostFocus: PROCEDURE EXPOSE globals. network_dialog
    480480
    481481    idx = VRGet('DDCB_PROTOCOL', 'Selected')
     
    488488
    489489    IF GetCupsQueues( server ) == 0 THEN RETURN
     490
     491    /* Sanity check to make sure the dialog wasn't dismissed before lpstat returned */
     492    IF network_dialog <> 1 THEN RETURN
     493
    490494    CALL VRMethod 'DDCB_CUPSQUEUES', 'AddStringList', 'cupsdest.'
    491495RETURN
     
    13491353    server = STRIP( VRGet("EF_SERVER",      "Value"))
    13501354    pqueue = STRIP( VRGet("EF_QUEUE",       "Value"))
    1351     cqueue = STRIP( VRGet("DDCB_CUPSQUEUE", "Value"))
     1355    cqueue = STRIP( VRGet("DDCB_CUPSQUEUES","Value"))
    13521356    userid = STRIP( VRGet("EF_USERID",      "Value"))
    13531357    passwd = STRIP( VRGet("EF_PASSWORD",    "Value"))
     
    19741978*/
    19751979SW_NETWORK_Fini:
     1980
     1981    network_dialog = 0
     1982
    19761983    window = VRInfo( "Window" )
    19771984    call VRDestroy window
     
    19811988*/
    19821989SW_NETWORK_Init:
     1990
     1991    /* Flag to keep track of whether dialog is open */
     1992    network_dialog = 1
    19831993
    19841994    CALL NLSSetText 'SW_NETWORK',   'Caption',  80    /* 80: Network Printer */
Note: See TracChangeset for help on using the changeset viewer.