VirtualBox

Changeset 66152 in vbox for trunk/src


Ignore:
Timestamp:
Mar 17, 2017 10:19:21 AM (8 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:8718: Don't check for ExtPack update if the GUI was started by double clicking a .vbox-extpack file (or with similar argument to VBox executable file), but only while EP update proposal is on the screen, e.g. resume usual checks after user performed or canceled EP update.

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  
    235235    , m_fSeparateProcess(false)
    236236    , m_pMediumEnumerator(0)
     237    , m_fEPInstallationRequested(false)
    237238#ifdef VBOX_WS_X11
    238239    , m_fCompositingManagerRunning(false)
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.h

    r64644 r66152  
    172172    QList<QUrl> &argUrlList() { return m_ArgUrlList; }
    173173
     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
    174179#ifdef VBOX_WS_X11
    175180    /** X11: Returns whether the Window Manager we are running at is composition one. */
     
    556561    UIMediumEnumerator *m_pMediumEnumerator;
    557562    mutable QReadWriteLock m_mediumEnumeratorDtorRwLock;
     563
     564    /** Holds whether the Extension Pack installation was requested at startup. */
     565    bool m_fEPInstallationRequested;
    558566
    559567#ifdef VBOX_WS_X11
  • trunk/src/VBox/Frontends/VirtualBox/src/net/UIUpdateManager.cpp

    r65268 r66152  
    352352    void sltStartStep()
    353353    {
     354        /* Return if Selector UI has a direct request to install EP: */
     355        if (vboxGlobal().isEPInstallationRequested())
     356        {
     357            emit sigStepComplete();
     358            return;
     359        }
     360
    354361        /* Return if already downloading: */
    355362        if (UIDownloaderExtensionPack::current())
  • trunk/src/VBox/Frontends/VirtualBox/src/selector/UISelectorWindow.cpp

    r64768 r66152  
    370370            else if (VBoxGlobal::hasAllowedExtension(strFile, VBoxExtPackFileExts))
    371371            {
     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. */
    372375                UIGlobalSettingsExtension::doInstallation(strFile, QString(), this, NULL);
     376                /* Allow update manager to propose us to update EP: */
     377                vboxGlobal().setEPInstallationRequested(false);
    373378            }
    374379        }
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette