VirtualBox

Changeset 5795 in vbox


Ignore:
Timestamp:
Nov 19, 2007 2:02:39 PM (17 years ago)
Author:
vboxsync
Message:

2507: "Changing any VM setting after creating a new VM cancels the First Run Wizard" updated (some minor fixes and comments).

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

Legend:

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

    r5792 r5795  
    31673167    <variable access="private">BootItemsList *tblBootOrder;</variable>
    31683168    <variable access="private">QString mNoInterfaces;</variable>
    3169     <variable access="private">bool mAllowResetFRF;</variable>
     3169    <variable access="private">bool mAllowResetFirstRunFlag;</variable>
    31703170    <variable access="private">bool mResetFirstRunFlag;</variable>
    31713171</variables>
     
    32083208    <slot>hostInterfaceAdd()</slot>
    32093209    <slot>hostInterfaceRemove()</slot>
    3210     <slot>onMediaEnumDone()</slot>
     3210    <slot>onMediaEnumerationDone()</slot>
    32113211    <slot>resetFirstRunFlag()</slot>
    32123212</slots>
  • trunk/src/VBox/Frontends/VirtualBox/ui/VBoxVMSettingsDlg.ui.h

    r5792 r5795  
    474474    polished = false;
    475475
    476     mAllowResetFRF = false;
     476    /* disallow resetting First Run Wizard flag until media enumeration
     477     * process is finished and all data is finally loaded into ui */
     478    mAllowResetFirstRunFlag = false;
    477479    connect (&vboxGlobal(), SIGNAL (mediaEnumFinished (const VBoxMediaList &)),
    478              this, SLOT (onMediaEnumDone()));
    479     mResetFirstRunFlag = false;
     480             this, SLOT (onMediaEnumerationDone()));
    480481
    481482    setIcon (QPixmap::fromMimeSource ("settings_16px.png"));
     
    829830    /* Boot-order table */
    830831    tblBootOrder = new BootItemsList (groupBox12, "tblBootOrder");
     832    connect (tblBootOrder, SIGNAL (bootSequenceChanged()),
     833             this, SLOT (resetFirstRunFlag()));
    831834
    832835    /* Fixing focus order for BootItemsList */
     
    11391142
    11401143
    1141 void VBoxVMSettingsDlg::onMediaEnumDone()
    1142 {
    1143     mAllowResetFRF = true;
     1144void VBoxVMSettingsDlg::onMediaEnumerationDone()
     1145{
     1146    mAllowResetFirstRunFlag = true;
    11441147}
    11451148
     
    11471150void VBoxVMSettingsDlg::resetFirstRunFlag()
    11481151{
    1149     if (mAllowResetFRF)
     1152    if (mAllowResetFirstRunFlag)
    11501153        mResetFirstRunFlag = true;
    11511154}
     
    15791582    /* Boot-order */
    15801583    tblBootOrder->getFromMachine (machine);
    1581     connect (tblBootOrder, SIGNAL (bootSequenceChanged()),
    1582              this, SLOT (resetFirstRunFlag()));
    15831584
    15841585    /* ACPI */
     
    19141915    wvalFloppy->revalidate();
    19151916    wvalVRDP->revalidate();
     1917
     1918    /* finally set the reset First Run Wizard flag to "false" to make sure
     1919     * user will see this dialog if he hasn't change the boot-order
     1920     * and/or mounted images configuration */
     1921    mResetFirstRunFlag = false;
    19161922}
    19171923
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