Changeset 90939 in vbox
- Timestamp:
- Aug 27, 2021 8:52:21 AM (4 years ago)
- svn:sync-xref-src-repo-rev:
- 146577
- 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 233 233 /* static */ 234 234 UICommon *UICommon::s_pInstance = 0; 235 bool UICommon::s_fCleaningUp = false;236 235 QString UICommon::s_strLoadedLanguageId = vboxBuiltInLanguageName(); 237 236 QString UICommon::s_strUserDefinedPortName = QString(); … … 268 267 : m_enmType(enmType) 269 268 , m_fValid(false) 269 , m_fCleaningUp(false) 270 270 #ifdef VBOX_WS_WIN 271 271 , m_fDataCommitted(false) … … 848 848 /* Remember that the cleanup is in progress preventing any unwanted 849 849 * stuff which could be called from the other threads: */ 850 s_fCleaningUp = true;850 m_fCleaningUp = true; 851 851 852 852 #ifdef VBOX_WS_WIN … … 3242 3242 AssertReturnVoid(m_fValid); 3243 3243 /* Ignore the request during UICommon cleanup: */ 3244 if ( s_fCleaningUp)3244 if (m_fCleaningUp) 3245 3245 return; 3246 3246 /* Ignore the request during startup snapshot restoring: */ … … 3266 3266 AssertReturnVoid(m_fValid); 3267 3267 /* Ignore the request during UICommon cleanup: */ 3268 if ( s_fCleaningUp)3268 if (m_fCleaningUp) 3269 3269 return; 3270 3270 /* Ignore the request during startup snapshot restoring: */ -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UICommon.h
r90938 r90939 163 163 /** @name Common stuff. 164 164 * @{ */ 165 /** Returns whether UICommon cleanup is in progress. */166 static bool isCleaningUp() { return s_fCleaningUp; }167 168 165 /** Returns Qt runtime version string. */ 169 166 static QString qtRTVersionString(); … … 184 181 /** Returns whether UICommon instance is properly initialized. */ 185 182 bool isValid() const { return m_fValid; } 183 /** Returns whether UICommon instance cleanup is in progress. */ 184 bool isCleaningUp() const { return m_fCleaningUp; } 186 185 187 186 /** Returns the UI type. */ … … 861 860 /** @name Common stuff. 862 861 * @{ */ 863 /** Holds whether UICommon cleanup is in progress. */864 static bool s_fCleaningUp;865 866 862 /** Holds the currently loaded language ID. */ 867 863 static QString s_strLoadedLanguageId; … … 875 871 /** Holds whether UICommon instance is properly initialized. */ 876 872 bool m_fValid; 873 /** Holds whether UICommon instance cleanup is in progress. */ 874 bool m_fCleaningUp; 877 875 878 876 #ifdef VBOX_WS_WIN -
trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMediumEnumerator.cpp
r90256 r90939 189 189 190 190 /* UICommon is cleaning up, abort immediately: */ 191 if ( UICommon::isCleaningUp())191 if (uiCommon().isCleaningUp()) 192 192 return; 193 193 … … 496 496 { 497 497 /* If UICommon is cleaning up, abort immediately: */ 498 if ( UICommon::isCleaningUp())498 if (uiCommon().isCleaningUp()) 499 499 break; 500 500
Note:
See TracChangeset
for help on using the changeset viewer.