VirtualBox

Changeset 54952 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Mar 25, 2015 5:44:21 PM (10 years ago)
Author:
vboxsync
Message:

FE/Qt: Machine settings Serializer: Cleanup rework to prepare to the encryption settings integration (step 11): Start the save-settings process only after corresponding progress-dialog is executed.

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

Legend:

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

    r54936 r54952  
    185185int UISettingsSerializerProgress::exec()
    186186{
    187     /* Start the serializer: */
    188     m_pSerializer->start();
     187    /* Ask for process start: */
     188    emit sigAskForProcessStart();
    189189
    190190    /* Call to base-class: */
     
    202202    /* Configure self: */
    203203    setWindowModality(Qt::WindowModal);
     204    setMinimumDuration(0);
    204205    setCancelButton(0);
     206    connect(this, SIGNAL(sigAskForProcessStart()),
     207            this, SLOT(sltStartProcess()), Qt::QueuedConnection);
    205208
    206209    /* Create serializer: */
     
    231234}
    232235
     236void UISettingsSerializerProgress::sltStartProcess()
     237{
     238    /* Start the serializer: */
     239    m_pSerializer->start();
     240}
     241
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/UISettingsSerializer.h

    r54932 r54952  
    131131    Q_OBJECT;
    132132
     133signals:
     134
     135    /** Asks itself for process start. */
     136    void sigAskForProcessStart();
     137
    133138public:
    134139
     
    157162private slots:
    158163
     164    /** Starts the process. */
     165    void sltStartProcess();
     166
    159167    /** Advances the current progress value. */
    160168    void sltAdvanceProgressValue() { setValue(value() + 1); }
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