Changeset 51056 in vbox
- Timestamp:
- Apr 11, 2014 5:09:24 PM (11 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/extradata
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataManager.cpp
r51054 r51056 197 197 } 198 198 199 UIExtraDataManager::UIExtraDataManager() 200 : m_pHandler(new UIExtraDataEventHandler(this)) 201 { 202 /* Connect to static instance: */ 203 m_pInstance = this; 204 } 205 206 UIExtraDataManager::~UIExtraDataManager() 207 { 208 /* Disconnect from static instance: */ 209 m_pInstance = 0; 210 } 211 199 212 #ifdef VBOX_GUI_WITH_NETWORK_MANAGER 200 213 bool UIExtraDataManager::shouldWeAllowApplicationUpdate() const … … 434 447 { 435 448 return gpConverter->fromInternalString<GuruMeditationHandlerType>(extraDataString(GUI_GuruMeditationHandler, strID)); 436 }437 438 UIExtraDataManager::UIExtraDataManager()439 : m_pHandler(new UIExtraDataEventHandler(this))440 {441 /* Connect to static instance: */442 m_pInstance = this;443 }444 445 UIExtraDataManager::~UIExtraDataManager()446 {447 /* Disconnect from static instance: */448 m_pInstance = 0;449 449 } 450 450 … … 522 522 CVirtualBox vbox = vboxGlobal().virtualBox(); 523 523 524 /* Make sure at least empty map is created: */ 525 m_data[QString()] = ExtraDataMap(); 526 524 527 /* Load global extra-data map: */ 525 528 foreach (const QString &strKey, vbox.GetExtraDataKeys()) -
trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataManager.h
r51054 r51056 40 40 { 41 41 Q_OBJECT; 42 43 /** Extra-data Manager constructor. */ 44 UIExtraDataManager(); 45 /** Extra-data Manager destructor. */ 46 ~UIExtraDataManager(); 42 47 43 48 signals: … … 131 136 private: 132 137 133 /** Extra-data Manager constructor. */134 UIExtraDataManager();135 /** Extra-data Manager destructor. */136 ~UIExtraDataManager();137 138 138 /** Prepare Extra-data Manager. */ 139 139 void prepare();
Note:
See TracChangeset
for help on using the changeset viewer.