- Timestamp:
- Jun 4, 2018 4:56:42 PM (7 years ago)
- svn:sync-xref-src-repo-rev:
- 122907
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.cpp
r72434 r72435 332 332 , m_pIconPool(0) 333 333 , m_pMediumEnumerator(0) 334 , m_fEPInstallationRequested(false)335 334 { 336 335 /* Assign instance: */ -
trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.h
r72432 r72435 555 555 QWidget *pParent, 556 556 QString *pstrExtPackName); 557 558 /** @todo remove */559 bool isEPInstallationRequested() const { return m_fEPInstallationRequested; }560 /** @todo remove */561 void setEPInstallationRequested(bool fRequested) { m_fEPInstallationRequested = fRequested; }562 557 /** @} */ 563 558 … … 865 860 /** @} */ 866 861 867 /** @todo remove */868 bool m_fEPInstallationRequested;869 870 862 #if defined(VBOX_WS_WIN) && defined(VBOX_GUI_WITH_SHARED_LIBRARY) 871 863 /** @name ATL stuff. -
trunk/src/VBox/Frontends/VirtualBox/src/net/UIUpdateManager.cpp
r71528 r72435 400 400 void UIUpdateStepVirtualBoxExtensionPack::sltStartStep() 401 401 { 402 /* Return if Selector UI hasa direct request to install EP: */403 if ( vboxGlobal().isEPInstallationRequested())402 /* Return if Selector UI issued a direct request to install EP: */ 403 if (gUpdateManager->isEPInstallationRequested()) 404 404 { 405 405 emit sigStepComplete(); … … 490 490 /* Warn the user about extension pack was downloaded and saved, propose to install it: */ 491 491 if (msgCenter().proposeInstallExtentionPack(GUI_ExtPackName, strSource, QDir::toNativeSeparators(strTarget))) 492 VBoxGlobal::doExtPackInstallation(strTarget, strDigest, windowManager().networkManagerOrMainWindowShown(), NULL);492 vboxGlobal().doExtPackInstallation(strTarget, strDigest, windowManager().networkManagerOrMainWindowShown(), NULL); 493 493 /* Propose to delete the downloaded extension pack: */ 494 494 if (msgCenter().proposeDeleteExtentionPack(QDir::toNativeSeparators(strTarget))) … … 526 526 , m_fIsRunning(false) 527 527 , m_uTime(1 /* day */ * 24 /* hours */ * 60 /* minutes */ * 60 /* seconds */ * 1000 /* ms */) 528 , m_fEPInstallationRequested(false) 528 529 { 529 530 /* Prepare instance: */ -
trunk/src/VBox/Frontends/VirtualBox/src/net/UIUpdateManager.h
r71630 r72435 48 48 static UIUpdateManager *instance() { return s_pInstance; } 49 49 50 /** Returns whether the Extension Pack installation is requested. */ 51 bool isEPInstallationRequested() const { return m_fEPInstallationRequested; } 52 /** Defines whether the Extension Pack installation is @a fRequested. */ 53 void setEPInstallationRequested(bool fRequested) { m_fEPInstallationRequested = fRequested; } 54 50 55 public slots: 51 56 … … 72 77 /** Holds the refresh period. */ 73 78 quint64 m_uTime; 79 80 /** Holds whether the Extension Pack installation is requested. */ 81 bool m_fEPInstallationRequested; 74 82 }; 75 83 -
trunk/src/VBox/Frontends/VirtualBox/src/selector/UISelectorWindow.cpp
r72363 r72435 50 50 # include "UIToolsPaneMachine.h" 51 51 # include "UIToolsToolbar.h" 52 # ifdef VBOX_GUI_WITH_NETWORK_MANAGER 53 # include "UIUpdateManager.h" 54 # endif 52 55 # include "UIVirtualBoxEventHandler.h" 53 56 # include "UIWizardCloneVM.h" … … 57 60 # include "UINetworkManager.h" 58 61 # include "UINetworkManagerIndicator.h" 59 # endif /* VBOX_GUI_WITH_NETWORK_MANAGER */62 # endif 60 63 # ifdef VBOX_WS_MAC 61 64 # include "UIImageTools.h" 62 65 # include "UIWindowMenuManager.h" 63 66 # include "VBoxUtils.h" 64 # endif /* VBOX_WS_MAC */67 # endif 65 68 # ifdef VBOX_WS_X11 66 69 # include "UIDesktopWidgetWatchdog.h" … … 398 401 else if (VBoxGlobal::hasAllowedExtension(strFile, VBoxExtPackFileExts)) 399 402 { 403 #ifdef VBOX_GUI_WITH_NETWORK_MANAGER 400 404 /* Prevent update manager from proposing us to update EP: */ 401 vboxGlobal().setEPInstallationRequested(true); 405 gUpdateManager->setEPInstallationRequested(true); 406 #endif 402 407 /* Propose the user to install EP described by the arguments @a list. */ 403 VBoxGlobal::doExtPackInstallation(strFile, QString(), this, NULL); 408 vboxGlobal().doExtPackInstallation(strFile, QString(), this, NULL); 409 #ifdef VBOX_GUI_WITH_NETWORK_MANAGER 404 410 /* Allow update manager to propose us to update EP: */ 405 vboxGlobal().setEPInstallationRequested(false); 411 gUpdateManager->setEPInstallationRequested(false); 412 #endif 406 413 } 407 414 } -
trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsExtension.cpp
r71461 r72435 307 307 { 308 308 QString strExtPackName; 309 VBoxGlobal::doExtPackInstallation(strFilePath, QString(), this, &strExtPackName);309 vboxGlobal().doExtPackInstallation(strFilePath, QString(), this, &strExtPackName); 310 310 311 311 /* Since we might be reinstalling an existing package, we have to
Note:
See TracChangeset
for help on using the changeset viewer.