VirtualBox

Changeset 100902 in vbox


Ignore:
Timestamp:
Aug 17, 2023 6:40:28 PM (16 months ago)
Author:
vboxsync
Message:

FE/Qt: UISettingsDialog: A bit of cleanup related to serialization.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/settings
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/UISettingsDialog.cpp

    r100899 r100902  
    175175}
    176176
    177 void UISettingsDialog::sltMarkLoaded()
    178 {
    179     /* Delete serializer if exists: */
    180     if (serializeProcess())
    181     {
    182         delete m_pSerializeProcess;
    183         m_pSerializeProcess = 0;
    184     }
    185 
    186     /* Mark serialization finished: */
    187     m_fSerializationIsInProgress = false;
    188 }
    189 
    190 void UISettingsDialog::sltMarkSaved()
     177void UISettingsDialog::sltHandleSerializationFinished()
    191178{
    192179    /* Delete serializer if exists: */
     
    384371        connect(m_pSerializeProcess, &UISettingsSerializer::sigNotifyAboutProcessStarted, this, &UISettingsDialog::sltHandleProcessStarted);
    385372        connect(m_pSerializeProcess, &UISettingsSerializer::sigNotifyAboutProcessProgressChanged, this, &UISettingsDialog::sltHandleProcessProgressChange);
    386         connect(m_pSerializeProcess, &UISettingsSerializer::sigNotifyAboutProcessFinished, this, &UISettingsDialog::sltMarkLoaded);
     373        connect(m_pSerializeProcess, &UISettingsSerializer::sigNotifyAboutProcessFinished, this, &UISettingsDialog::sltHandleSerializationFinished);
    387374
    388375        /* Raise current page priority: */
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/UISettingsDialog.h

    r100900 r100902  
    9898    virtual void sltCategoryChanged(int cId);
    9999
    100     /** Marks dialog loaded. */
    101     virtual void sltMarkLoaded();
    102     /** Marks dialog saved. */
    103     virtual void sltMarkSaved();
     100    /** Handle serializartion finished. */
     101    virtual void sltHandleSerializationFinished();
    104102
    105103    /** Handles process start. */
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/UISettingsDialogSpecific.cpp

    r100896 r100902  
    169169        msgCenter().cannotSetSystemProperties(comNewProperties, this);
    170170
    171     /* Mark as saved: */
    172     sltMarkSaved();
     171    /* Handle serializartion finished: */
     172    sltHandleSerializationFinished();
    173173}
    174174
     
    484484        msgCenter().cannotSaveMachineSettings(m_machine, this);
    485485
    486     /* Mark as saved: */
    487     sltMarkSaved();
     486    /* Handle serializartion finished: */
     487    sltHandleSerializationFinished();
    488488}
    489489
     
    556556}
    557557
    558 void UISettingsDialogMachine::sltMarkLoaded()
    559 {
    560     /* Call for base-class: */
    561     UISettingsDialog::sltMarkLoaded();
    562 
    563     /* Unlock the session if exists: */
    564     if (!m_session.isNull())
    565     {
    566         m_session.UnlockMachine();
    567         m_session = CSession();
    568         m_machine = CMachine();
    569         m_console = CConsole();
    570     }
    571 }
    572 
    573 void UISettingsDialogMachine::sltMarkSaved()
    574 {
    575     /* Call for base-class: */
    576     UISettingsDialog::sltMarkSaved();
     558void UISettingsDialogMachine::sltHandleSerializationFinished()
     559{
     560    /* Call to base-class: */
     561    UISettingsDialog::sltHandleSerializationFinished();
    577562
    578563    /* Unlock the session if exists: */
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/UISettingsDialogSpecific.h

    r100900 r100902  
    138138    virtual void sltCategoryChanged(int cId) RT_OVERRIDE;
    139139
    140     /** Marks dialog loaded. */
    141     virtual void sltMarkLoaded() RT_OVERRIDE;
    142     /** Marks dialog saved. */
    143     virtual void sltMarkSaved() RT_OVERRIDE;
     140    /** Handle serializartion finished. */
     141    virtual void sltHandleSerializationFinished() RT_OVERRIDE;
    144142
    145143private slots:
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette