- Timestamp:
- Apr 12, 2017 3:21:39 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsSF.cpp
r66508 r66540 317 317 { 318 318 /* Prepare old folder data & cache key: */ 319 UIDataSettingsSharedFolder oldFolderData; 319 320 QString strFolderKey = QString::number(iFolderIndex); 320 UIDataSettingsSharedFolder oldFolderData;321 321 322 322 /* Check whether folder is valid: */ … … 933 933 const UISettingsCacheSharedFolder &folderCache = m_pCache->child(iFolderIndex); 934 934 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); 946 942 } 947 943 }
Note:
See TracChangeset
for help on using the changeset viewer.