VirtualBox

Changeset 90939 in vbox


Ignore:
Timestamp:
Aug 27, 2021 8:52:21 AM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
146577
Message:

FE/Qt: bugref:10067: UICommon: A bit of rework for s_fCleaningUp stuff.

Location:
trunk/src/VBox/Frontends/VirtualBox/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UICommon.cpp

    r90938 r90939  
    233233/* static */
    234234UICommon *UICommon::s_pInstance = 0;
    235 bool      UICommon::s_fCleaningUp = false;
    236235QString   UICommon::s_strLoadedLanguageId = vboxBuiltInLanguageName();
    237236QString   UICommon::s_strUserDefinedPortName = QString();
     
    268267    : m_enmType(enmType)
    269268    , m_fValid(false)
     269    , m_fCleaningUp(false)
    270270#ifdef VBOX_WS_WIN
    271271    , m_fDataCommitted(false)
     
    848848    /* Remember that the cleanup is in progress preventing any unwanted
    849849     * stuff which could be called from the other threads: */
    850     s_fCleaningUp = true;
     850    m_fCleaningUp = true;
    851851
    852852#ifdef VBOX_WS_WIN
     
    32423242    AssertReturnVoid(m_fValid);
    32433243    /* Ignore the request during UICommon cleanup: */
    3244     if (s_fCleaningUp)
     3244    if (m_fCleaningUp)
    32453245        return;
    32463246    /* Ignore the request during startup snapshot restoring: */
     
    32663266    AssertReturnVoid(m_fValid);
    32673267    /* Ignore the request during UICommon cleanup: */
    3268     if (s_fCleaningUp)
     3268    if (m_fCleaningUp)
    32693269        return;
    32703270    /* Ignore the request during startup snapshot restoring: */
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UICommon.h

    r90938 r90939  
    163163    /** @name Common stuff.
    164164     * @{ */
    165         /** Returns whether UICommon cleanup is in progress. */
    166         static bool isCleaningUp() { return s_fCleaningUp; }
    167 
    168165        /** Returns Qt runtime version string. */
    169166        static QString qtRTVersionString();
     
    184181        /** Returns whether UICommon instance is properly initialized. */
    185182        bool isValid() const { return m_fValid; }
     183        /** Returns whether UICommon instance cleanup is in progress. */
     184        bool isCleaningUp() const { return m_fCleaningUp; }
    186185
    187186        /** Returns the UI type. */
     
    861860    /** @name Common stuff.
    862861     * @{ */
    863         /** Holds whether UICommon cleanup is in progress. */
    864         static bool  s_fCleaningUp;
    865 
    866862        /** Holds the currently loaded language ID. */
    867863        static QString  s_strLoadedLanguageId;
     
    875871        /** Holds whether UICommon instance is properly initialized. */
    876872        bool  m_fValid;
     873        /** Holds whether UICommon instance cleanup is in progress. */
     874        bool  m_fCleaningUp;
    877875
    878876#ifdef VBOX_WS_WIN
  • trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMediumEnumerator.cpp

    r90256 r90939  
    189189
    190190    /* UICommon is cleaning up, abort immediately: */
    191     if (UICommon::isCleaningUp())
     191    if (uiCommon().isCleaningUp())
    192192        return;
    193193
     
    496496    {
    497497        /* If UICommon is cleaning up, abort immediately: */
    498         if (UICommon::isCleaningUp())
     498        if (uiCommon().isCleaningUp())
    499499            break;
    500500
Note: See TracChangeset for help on using the changeset viewer.

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