- Timestamp:
- Feb 15, 2013 12:29:57 PM (12 years ago)
- svn:sync-xref-src-repo-rev:
- 83810
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/globals
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIActionPool.cpp
r44598 r44710 553 553 /* Delete instance: */ 554 554 delete m_pInstance; 555 } 556 557 /* static */ 558 void UIActionPool::createTemporary(UIActionPoolType type) 559 { 560 UIActionPool *pHelperPool = 0; 561 switch (type) 562 { 563 case UIActionPoolType_Selector: pHelperPool = new UIActionPoolSelector; break; 564 case UIActionPoolType_Runtime: pHelperPool = new UIActionPoolRuntime; break; 565 default: break; 566 } 567 if (pHelperPool) 568 { 569 pHelperPool->prepare(); 570 pHelperPool->cleanup(); 571 delete pHelperPool; 572 } 555 573 } 556 574 -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIActionPool.h
r44598 r44710 244 244 static void destroy(); 245 245 246 /* API: Shortcut pool helper stuff: */ 247 static void createTemporary(UIActionPoolType type); 248 246 249 /* API: RTTI: */ 247 250 UIActionPoolType type() const { return m_type; } -
trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.cpp
r44561 r44710 4589 4589 /* Create action pool: */ 4590 4590 if (isVMConsoleProcess()) 4591 { 4591 4592 UIActionPool::create(UIActionPoolType_Runtime); 4593 UIActionPool::createTemporary(UIActionPoolType_Selector); 4594 } 4592 4595 else 4596 { 4593 4597 UIActionPool::create(UIActionPoolType_Selector); 4598 UIActionPool::createTemporary(UIActionPoolType_Runtime); 4599 } 4594 4600 4595 4601 /* Create network manager: */
Note:
See TracChangeset
for help on using the changeset viewer.