VirtualBox

Changeset 66540 in vbox for trunk/src


Ignore:
Timestamp:
Apr 12, 2017 3:21:39 PM (8 years ago)
Author:
vboxsync
Message:

FE/Qt: Machine settings: Shared Folders page: Nitpicks (s.a. r114510).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsSF.cpp

    r66508 r66540  
    317317        {
    318318            /* Prepare old folder data & cache key: */
     319            UIDataSettingsSharedFolder oldFolderData;
    319320            QString strFolderKey = QString::number(iFolderIndex);
    320             UIDataSettingsSharedFolder oldFolderData;
    321321
    322322            /* Check whether folder is valid:  */
     
    933933            const UISettingsCacheSharedFolder &folderCache = m_pCache->child(iFolderIndex);
    934934
    935             /* Check if this folder data was changed: */
    936             if (folderCache.wasChanged())
    937             {
    938                 /* If folder was removed or updated: */
    939                 if (folderCache.wasRemoved() || folderCache.wasUpdated())
    940                     fSuccess = removeSharedFolder(folderCache);
    941 
    942                 /* If folder was created or updated: */
    943                 if (folderCache.wasCreated() || folderCache.wasUpdated())
    944                     fSuccess = createSharedFolder(folderCache);
    945             }
     935            /* Remove folder marked for 'remove' or 'update': */
     936            if (folderCache.wasRemoved() || folderCache.wasUpdated())
     937                fSuccess = removeSharedFolder(folderCache);
     938
     939            /* Create folder marked for 'create' or 'update': */
     940            if (folderCache.wasCreated() || folderCache.wasUpdated())
     941                fSuccess = createSharedFolder(folderCache);
    946942        }
    947943    }
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette