VirtualBox

Changeset 44710 in vbox for trunk


Ignore:
Timestamp:
Feb 15, 2013 12:29:57 PM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
83810
Message:

FE/Qt: 6065: Make sure shortcuts from all the action-pools were loaded into the shortcut-pool on any VBox GUI startup (selector UI and runtime UI).

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  
    553553    /* Delete instance: */
    554554    delete m_pInstance;
     555}
     556
     557/* static */
     558void 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    }
    555573}
    556574
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIActionPool.h

    r44598 r44710  
    244244    static void destroy();
    245245
     246    /* API: Shortcut pool helper stuff: */
     247    static void createTemporary(UIActionPoolType type);
     248
    246249    /* API: RTTI: */
    247250    UIActionPoolType type() const { return m_type; }
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.cpp

    r44561 r44710  
    45894589    /* Create action pool: */
    45904590    if (isVMConsoleProcess())
     4591    {
    45914592        UIActionPool::create(UIActionPoolType_Runtime);
     4593        UIActionPool::createTemporary(UIActionPoolType_Selector);
     4594    }
    45924595    else
     4596    {
    45934597        UIActionPool::create(UIActionPoolType_Selector);
     4598        UIActionPool::createTemporary(UIActionPoolType_Runtime);
     4599    }
    45944600
    45954601    /* Create network manager: */
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