VirtualBox

Changeset 2932 in vbox for trunk


Ignore:
Timestamp:
May 30, 2007 1:55:20 PM (18 years ago)
Author:
vboxsync
Message:

FE/Qt: Spelling.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/ui/VBoxVMSettingsDlg.ui

    r2915 r2932  
    27852785    <variable access="private">QIRichLabel *whatsThisLabel;</variable>
    27862786    <variable access="private">BootItemsList *tblBootOrder;</variable>
    2787     <variable access="private">bool mIsBootSettingsChanged;</variable>
     2787    <variable access="private">bool mResetFirstRunFlag;</variable>
    27882788</variables>
    27892789<slots>
     
    28222822    <slot>updateInterfaces( QWidget* )</slot>
    28232823    <slot>networkPageUpdate( QWidget* )</slot>
    2824     <slot>bootSequenceChanged()</slot>
     2824    <slot>resetFirstRunFlag()</slot>
    28252825</slots>
    28262826<functions>
  • trunk/src/VBox/Frontends/VirtualBox/ui/VBoxVMSettingsDlg.ui.h

    r2930 r2932  
    400400    polished = false;
    401401
     402    mResetFirstRunFlag = false;
     403
    402404    setIcon (QPixmap::fromMimeSource ("settings_16px.png"));
    403405
     
    737739    tblBootOrder = new BootItemsList (groupBox12, "tblBootOrder");
    738740    connect (tblBootOrder, SIGNAL (bootSequenceChanged()),
    739              this, SLOT (bootSequenceChanged()));
     741             this, SLOT (resetFirstRunFlag()));
    740742    /* Fixing focus order for BootItemsList */
    741743    setTabOrder (tbwGeneral, tblBootOrder);
     
    853855
    854856    VBoxGlobal::centerWidget (this, parentWidget());
    855 
    856     mIsBootSettingsChanged = false;
    857857}
    858858
     
    911911
    912912
    913 void VBoxVMSettingsDlg::bootSequenceChanged()
    914 {
    915     mIsBootSettingsChanged = true;
     913void VBoxVMSettingsDlg::resetFirstRunFlag()
     914{
     915    mResetFirstRunFlag = true;
    916916}
    917917
     
    919919void VBoxVMSettingsDlg::hdaMediaChanged()
    920920{
    921     bootSequenceChanged();
     921    resetFirstRunFlag();
    922922    uuidHDA = grbHDA->isChecked() ? cbHDA->getId() : QUuid();
    923923    txHDA->setText (getHdInfo (grbHDA, uuidHDA));
     
    929929void VBoxVMSettingsDlg::hdbMediaChanged()
    930930{
    931     bootSequenceChanged();
     931    resetFirstRunFlag();
    932932    uuidHDB = grbHDB->isChecked() ? cbHDB->getId() : QUuid();
    933933    txHDB->setText (getHdInfo (grbHDB, uuidHDB));
     
    939939void VBoxVMSettingsDlg::hddMediaChanged()
    940940{
    941     bootSequenceChanged();
     941    resetFirstRunFlag();
    942942    uuidHDD = grbHDD->isChecked() ? cbHDD->getId() : QUuid();
    943943    txHDD->setText (getHdInfo (grbHDD, uuidHDD));
     
    949949void VBoxVMSettingsDlg::cdMediaChanged()
    950950{
    951     bootSequenceChanged();
     951    resetFirstRunFlag();
    952952    uuidISODVD = bgDVD->isChecked() ? cbISODVD->getId() : QUuid();
    953953    /* revailidate */
     
    958958void VBoxVMSettingsDlg::fdMediaChanged()
    959959{
    960     bootSequenceChanged();
     960    resetFirstRunFlag();
    961961    uuidISOFloppy = bgFloppy->isChecked() ? cbISOFloppy->getId() : QUuid();
    962962    /* revailidate */
     
    17281728    }
    17291729
    1730     /* Clear the "GUI_FirstRun" extra data key in case of one of the boot
    1731      * settings was changed */
    1732     if (mIsBootSettingsChanged)
     1730    /* Clear the "GUI_FirstRun" extra data key in case if the boot order
     1731     * and/or disk configuration were changed */
     1732    if (mResetFirstRunFlag)
    17331733        cmachine.SetExtraData (GUI_FirstRun, QString::null);
    17341734
     
    18261826void VBoxVMSettingsDlg::showVDImageManager (QUuid *id, VBoxMediaComboBox *cbb, QLabel*)
    18271827{
    1828     bootSequenceChanged();
    1829 
    18301828    VBoxDefs::DiskType type = VBoxDefs::InvalidType;
    18311829    if (cbb == cbISODVD)
     
    18401838    QUuid machineId = cmachine.GetId();
    18411839    dlg.setup (type, true, &machineId, true /* aRefresh */, cmachine);
    1842     *id = dlg.exec() == VBoxDiskImageManagerDlg::Accepted ?
    1843         dlg.getSelectedUuid() : cbb->getId();
     1840    if (dlg.exec() == VBoxDiskImageManagerDlg::Accepted)
     1841    {
     1842        *id = dlg.getSelectedUuid();
     1843        resetFirstRunFlag();
     1844    }
     1845    else
     1846    {
     1847        *id = cbb->getId();
     1848    }
     1849
    18441850    cbb->setCurrentItem (*id);
    18451851    cbb->setFocus();
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