Changeset 59887 in vbox
- Timestamp:
- Mar 1, 2016 2:44:33 PM (9 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.cpp
r59774 r59887 1746 1746 } 1747 1747 1748 void VBoxGlobal::startMediumEnumeration( bool fForceStart /* = true*/)1748 void VBoxGlobal::startMediumEnumeration() 1749 1749 { 1750 1750 /* Make sure VBoxGlobal is already valid: */ … … 1766 1766 * restoring or the code with have a heart attack. */ 1767 1767 if (shouldRestoreCurrentSnapshot()) 1768 return;1769 1770 /* Developer doesn't want any unnecessary media caching! */1771 if (!fForceStart && !agressiveCaching())1772 1768 return; 1773 1769 … … 4354 4350 UIConverter::prepare(); 4355 4351 4356 /* Cache IMedium data. 4357 * There could be no used mediums at all, 4358 * but this method should be run anyway just to enumerate null UIMedium object, 4359 * used by some VBox smart widgets, like VBoxMediaComboBox: */ 4352 /* Create medium enumerator but don't do any immediate caching. */ 4360 4353 m_pMediumEnumerator = new UIMediumEnumerator; 4361 4354 { … … 4372 4365 this, SIGNAL(sigMediumEnumerationFinished())); 4373 4366 } 4374 if (agressiveCaching())4375 startMediumEnumeration();4376 4367 4377 4368 /* Create shortcut pool: */ -
trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.h
r59493 r59887 350 350 351 351 /* API: Medium-enumeration stuff: */ 352 void startMediumEnumeration( bool fForceStart = true);352 void startMediumEnumeration(); 353 353 bool agressiveCaching() const { return mAgressiveCaching; } 354 354 bool isMediumEnumerationInProgress() const; -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachine.cpp
r57805 r59887 204 204 qApp->setQuitOnLastWindowClosed(false); 205 205 206 /* Cache medium data if necessary: */ 207 vboxGlobal().startMediumEnumeration(false /* force start */); 206 /* Cache medium data early if necessary: */ 207 if (vboxGlobal().agressiveCaching()) 208 vboxGlobal().startMediumEnumeration(); 208 209 209 210 /* Prepare machine-logic: */ -
trunk/src/VBox/Frontends/VirtualBox/src/selector/UISelectorWindow.cpp
r59094 r59887 1143 1143 #endif /* Q_WS_MAC */ 1144 1144 1145 /* Cache medium data early if necessary: */ 1146 if (vboxGlobal().agressiveCaching()) 1147 vboxGlobal().startMediumEnumeration(); 1148 1145 1149 /* Prepare: */ 1146 1150 prepareIcon();
Note:
See TracChangeset
for help on using the changeset viewer.