Changeset 1026


Ignore:
Timestamp:
Jun 6, 2017, 2:56:15 PM (8 years ago)
Author:
Herwig Bauernfeind
Message:

GUITools: EVFSGUI do not crash on 0 bytes size or non existent smb.conf

Location:
trunk/guitools/evfsgui
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/guitools/evfsgui/evfsgui.vrp

    r1025 r1026  
    1212VRXWindow: __VREFileListWindow,1,3300,14695,2665,3358
    1313VRXWindow: __VRESectionListWindow,1,2867,14020,10889,5035
    14 VRXWindow: __VREToolsWindow,1,4011,4963,6992,1669
     14VRXWindow: __VREToolsWindow,1,4011,4963,6986,1661
    1515VRXWindow: __VREWindListWindow,1,458,14695,4866,3150
    1616UserFile: 1
    1717UserWindow: Main,1
    18 UserWindow: SW_SMBTREE,1
    1918UserWindow: SW_ACLS,1
  • trunk/guitools/evfsgui/evfsgui.vrx

    r1025 r1026  
    307307        parse var UserCred '--user='username'%%'password
    308308        UserCred = '--user='username'%'password
    309         say "  Strip double %%!!!"
     309        call lineout "debug", "  Strip double %%!!!"
    310310    end
    311311
     
    29652965
    29662966    CALL _INILoad
     2967    if \VRFileExists(samba.!smbconf)|stream(samba.!smbconf,"c","query size") = 0 then do
     2968        call _CreateSmbConf
     2969    end
    29672970
    29682971    call _TabFix 1
     
    45664569*/
    45674570PB_SETTINGS_APPLY_Click:
     4571    if options.!debug == 1 then say time()' PB_SETTINGS_APPLY_Click() started'
    45684572    advanced.!loglevel    = VRGet("SPIN_LOG_LEVEL", "Value" )
    45694573    advanced.!logfile     = VRGet("EF_LOGFILE",    "Value" )
     
    45794583    options.!storecreds   = VRGet("CB_STORECREDS", "Set" )
    45804584    options.!debug        = VRGet("CB_DEBUG",      "Set" )
    4581 
    45824585    if options.!debug == 1 then do /* Turn on additional columns in connection details view */
    45834586        ok = VRRedirectStdio("ON")
     
    45914594        ok = VRMethod("CN_CONDET", "SetFieldAttr", cd.loglevelfh ,    "Visible", 1)
    45924595        ok = VRMethod("CN_CONDET", "SetFieldAttr", cd.hashfh ,        "Visible", 1)
     4596
    45934597    end
    45944598    else do /* Turn on additional columns in connection details view */
     
    46134617        call _LMHostsUpdate
    46144618    end
     4619
    46154620    if advanced.!smbconfchanged = 1 then do
    46164621        name_resolve_order = VRGet("SPIN_NRO1","value")' 'VRGet("SPIN_NRO2","value")' 'VRGet("SPIN_NRO3","value")' 'VRGet("SPIN_NRO4","value")
     
    46274632    end
    46284633    if options.!storecreds = 0 then call Menu_File_ucCred_Reset_Click
     4634
     4635    if options.!debug == 1 then say time()' PB_SETTINGS_APPLY_Click() done'
    46294636return
    46304637
Note: See TracChangeset for help on using the changeset viewer.