Changeset 546 for branches


Ignore:
Timestamp:
Feb 6, 2011, 10:54:31 AM (15 years ago)
Author:
Herwig Bauernfeind
Message:

GUI-Tools: EVFSGUI: 2.1.x, attempt to fix Ticket #159, fix no plugin version in About box

Location:
branches/guitools-2.0
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/guitools-2.0/evfsgui/evfsgui.VRP

    r525 r546  
    1010VRXWindow: __VREFileListWindow,1,807,11033,1590,3358
    1111VRXWindow: __VRESectionListWindow,1,2674,10648,8696,4794
    12 VRXWindow: __VREToolsWindow,1,2517,7082,6489,1659
     12VRXWindow: __VREToolsWindow,1,2517,7082,6480,1661
    1313VRXWindow: __VREWindListWindow,1,542,8721,2650,3150
    1414UserFile: 1
  • branches/guitools-2.0/evfsgui/evfsgui.VRX

    r525 r546  
    38813881    plugindll. =""
    38823882
     3883    if NDFSDir = "" then NDFSDir = SysBootDrive()'\ecs\dll'
     3884
    38833885    ok = SysFileTree(NDFSDir'\ndpsmb.dll', "plugindll.", 'FOS')
    3884     if plugindll.0 = 0 then do
    3885         ok = SysFileTree(SysBootDrive()'\ecs\dll\ndpsmb.dll', "plugindll.", 'FOS')
    3886     end
    38873886
    38883887    if plugindll.0 > 0 then do
     
    39033902            I = I + 1
    39043903            line.I = linein(samba.!msg)
    3905             parse var line.I desc':'vers
    3906             DummyRH = VRMethod('CN_About', 'AddRecord')
    3907             ok = VRMethod("CN_ABOUT", "SetFieldData", DummyRH, About.DscFH, "Plugin "Desc, About.ValFH, strip(Vers))
    3908             AboutStr = AboutStr||'0D0A'x||"Plugin "Desc" "strip(Vers)
     3904            if pos('has no LAN component-style version string', line.I) > 0 then do
     3905                DummyRH = VRMethod('CN_About', 'AddRecord')
     3906                ok = VRMethod("CN_ABOUT", "SetFieldData", DummyRH, About.DscFH, "Error", About.ValFH, "Plugin has no LAN component-style version string")
     3907                leave
     3908            end
     3909            else do
     3910                parse var line.I desc':'vers
     3911                DummyRH = VRMethod('CN_About', 'AddRecord')
     3912                ok = VRMethod("CN_ABOUT", "SetFieldData", DummyRH, About.DscFH, "Plugin "Desc, About.ValFH, strip(Vers))
     3913                AboutStr = AboutStr||'0D0A'x||"Plugin "Desc" "strip(Vers)
     3914            end
    39093915        end
    39103916        line.0 = I
  • branches/guitools-2.0/shared/smbtree.vrs

    r477 r546  
    311311            if workgroup <> "" then do
    312312                wgh = _GetMachinehandle(workgroup)
    313                 if wgh = "" then do /* This machine is in a new workgroup - add it as well */
     313                if wgh = "" then do /* This machine appears to be in a new workgroup - add it as well */
    314314                    wgh = VRMethod( "CN_smbtree", "AddRecord",,, workgroup,"#62:PMWP.DLL")
    315315                    ok = VRMethod( "CN_smbtree", "SetFieldData", wgh, WorkGroupFH, workgroup)
     
    318318                    ok = VRMethod( "CN_smbtree", 'SetRecordAttr', wgh, "UserData", "WORKGROUP|")
    319319                end
    320                 if wgh <> "" then ok = VRMethod('CN_smbtree', 'SetRecordAttr', smbtree.!machine, 'Parent', wgh)
     320                /* we only do this for machines with empty parent (=workgroup) handle */
     321                /* this might not be good enough yet - verifictaion required          */
     322                if wgh <> "" & VRMethod('CN_smbtree', 'GetRecordAttr', smbtree.!machine, 'Parent') = "" then do
     323                    ok = VRMethod('CN_smbtree', 'SetRecordAttr', smbtree.!machine, 'Parent', wgh)
     324                end
    321325            end
    322326
Note: See TracChangeset for help on using the changeset viewer.