- Timestamp:
- Mar 17, 2017 10:19:21 AM (8 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
r65891 r66152 235 235 , m_fSeparateProcess(false) 236 236 , m_pMediumEnumerator(0) 237 , m_fEPInstallationRequested(false) 237 238 #ifdef VBOX_WS_X11 238 239 , m_fCompositingManagerRunning(false) -
trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.h
r64644 r66152 172 172 QList<QUrl> &argUrlList() { return m_ArgUrlList; } 173 173 174 /** Returns whether the Extension Pack installation was requested at startup. */ 175 bool isEPInstallationRequested() const { return m_fEPInstallationRequested; } 176 /** Defines whether the Extension Pack installation was @a fRequested at startup. */ 177 void setEPInstallationRequested(bool fRequested) { m_fEPInstallationRequested = fRequested; } 178 174 179 #ifdef VBOX_WS_X11 175 180 /** X11: Returns whether the Window Manager we are running at is composition one. */ … … 556 561 UIMediumEnumerator *m_pMediumEnumerator; 557 562 mutable QReadWriteLock m_mediumEnumeratorDtorRwLock; 563 564 /** Holds whether the Extension Pack installation was requested at startup. */ 565 bool m_fEPInstallationRequested; 558 566 559 567 #ifdef VBOX_WS_X11 -
trunk/src/VBox/Frontends/VirtualBox/src/net/UIUpdateManager.cpp
r65268 r66152 352 352 void sltStartStep() 353 353 { 354 /* Return if Selector UI has a direct request to install EP: */ 355 if (vboxGlobal().isEPInstallationRequested()) 356 { 357 emit sigStepComplete(); 358 return; 359 } 360 354 361 /* Return if already downloading: */ 355 362 if (UIDownloaderExtensionPack::current()) -
trunk/src/VBox/Frontends/VirtualBox/src/selector/UISelectorWindow.cpp
r64768 r66152 370 370 else if (VBoxGlobal::hasAllowedExtension(strFile, VBoxExtPackFileExts)) 371 371 { 372 /* Prevent update manager from proposing us to update EP: */ 373 vboxGlobal().setEPInstallationRequested(true); 374 /* Propose the user to install EP described by the arguments @a list. */ 372 375 UIGlobalSettingsExtension::doInstallation(strFile, QString(), this, NULL); 376 /* Allow update manager to propose us to update EP: */ 377 vboxGlobal().setEPInstallationRequested(false); 373 378 } 374 379 }
Note:
See TracChangeset
for help on using the changeset viewer.