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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.