Changeset 78723 in vbox for trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.cpp
- Timestamp:
- May 24, 2019 12:26:23 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.cpp
r78722 r78723 2520 2520 } 2521 2521 2522 void VBoxGlobal::enumerateAdditionalMedium(const CMedium &comMedium) 2523 { 2524 /* Make sure VBoxGlobal is already valid: */ 2525 AssertReturnVoid(m_fValid); 2526 /* Ignore the request during VBoxGlobal cleanup: */ 2527 if (s_fCleaningUp) 2528 return; 2529 /* Ignore the request during startup snapshot restoring: */ 2530 if (shouldRestoreCurrentSnapshot()) 2531 return; 2532 2533 /* Make sure medium-enumerator is already created: */ 2534 if (!m_pMediumEnumerator) 2535 return; 2536 2537 /* Redirect request to medium-enumerator under proper lock: */ 2538 if (m_meCleanupProtectionToken.tryLockForRead()) 2539 { 2540 if (m_pMediumEnumerator) 2541 m_pMediumEnumerator->enumerateAdditionalMedium(comMedium); 2542 m_meCleanupProtectionToken.unlock(); 2543 } 2544 } 2545 2522 2546 void VBoxGlobal::refreshMedia() 2523 2547 { … … 3307 3331 { 3308 3332 /* UI medium may be new and not among our media, request enumeration: */ 3309 startMediumEnumeration();3333 enumerateAdditionalMedium(comMedium); 3310 3334 3311 3335 /* Search for corresponding UI medium again: */
Note:
See TracChangeset
for help on using the changeset viewer.