VirtualBox

Changeset 99141 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Mar 23, 2023 12:36:33 PM (2 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
156506
Message:

FE/Qt: bugref:10322: Runtime UI: Small rework for UIMachine prepare/cleanup cascade; Do not mix state-prepare procedure with enter-initial-state procedure, they will be used separately.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/runtime
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachine.cpp

    r99140 r99141  
    14761476    prepareKeyboard();
    14771477    prepareClose();
    1478     prepareMachineLogic();
     1478    prepareVisualState();
     1479    enterInitialVisualState();
    14791480
    14801481    /* Try to initialize VM session: */
     
    17581759}
    17591760
    1760 void UIMachine::prepareMachineLogic()
     1761void UIMachine::prepareVisualState()
    17611762{
    17621763    /* Prepare async visual state type change handler: */
     
    17871788        }
    17881789    }
    1789 
    1790     /* Enter initial visual state: */
    1791     enterInitialVisualState();
     1790}
     1791
     1792void UIMachine::enterInitialVisualState()
     1793{
     1794    sltChangeVisualState(m_enmInitialVisualState);
    17921795}
    17931796
     
    18501853    cleanupSession();
    18511854    cleanupNotificationCenter();
    1852 }
    1853 
    1854 void UIMachine::enterInitialVisualState()
    1855 {
    1856     sltChangeVisualState(m_enmInitialVisualState);
    18571855}
    18581856
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachine.h

    r99140 r99141  
    858858    /** Prepare routine: Close stuff. */
    859859    void prepareClose();
    860     /** Prepare routine: Machine-logic stuff. */
    861     void prepareMachineLogic();
     860    /** Prepare routine: Visual-state stuff. */
     861    void prepareVisualState();
     862
     863    /** Moves VM to initial state. */
     864    void enterInitialVisualState();
    862865
    863866    /** Cleanup routine: Machine-logic stuff. */
     
    875878    /** Cleanup routine. */
    876879    void cleanup();
    877 
    878     /** Moves VM to initial state. */
    879     void enterInitialVisualState();
    880880
    881881    /** @name Actions stuff.
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