Changeset 76883 in vbox for trunk/src/VBox
- Timestamp:
- Jan 18, 2019 10:31:08 AM (6 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/globals
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.cpp
r76835 r76883 3124 3124 void VBoxGlobal::updateRecentlyUsedMediumListAndFolder(UIMediumDeviceType enmMediumType, QString strMediumLocation) 3125 3125 { 3126 /* Remember the path of the last chosen medium: */ 3126 /** Don't add the medium to extra data if its name is in exclude list, m_recentMediaExcludeList: */ 3127 foreach (QString strExcludeName, m_recentMediaExcludeList) 3128 { 3129 if (strMediumLocation.contains(strExcludeName)) 3130 return; 3131 } 3132 3133 /* Remember the path of the last chosen medium: */ 3127 3134 switch (enmMediumType) 3128 3135 { … … 4212 4219 checkForWrongUSBMounted(); 4213 4220 #endif /* RT_OS_LINUX */ 4221 4222 /* Populate the list of medium names to be excluded from the 4223 recently used media extra data: */ 4224 m_recentMediaExcludeList << "ad-hoc.viso"; 4214 4225 } 4215 4226 -
trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.h
r76835 r76883 871 871 /** Holds the medium enumerator. */ 872 872 UIMediumEnumerator *m_pMediumEnumerator; 873 /** List of medium names that should not appears in the recently used media extra data. */ 874 QStringList m_recentMediaExcludeList; 873 875 /** @} */ 874 876
Note:
See TracChangeset
for help on using the changeset viewer.