VirtualBox

Changeset 5792 in vbox


Ignore:
Timestamp:
Nov 19, 2007 12:29:44 PM (17 years ago)
Author:
vboxsync
Message:

2507: "Changing any VM setting after creating a new VM cancels the First Run Wizard" fixed.

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

Legend:

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

    r5657 r5792  
    31673167    <variable access="private">BootItemsList *tblBootOrder;</variable>
    31683168    <variable access="private">QString mNoInterfaces;</variable>
     3169    <variable access="private">bool mAllowResetFRF;</variable>
    31693170    <variable access="private">bool mResetFirstRunFlag;</variable>
    31703171</variables>
     
    32073208    <slot>hostInterfaceAdd()</slot>
    32083209    <slot>hostInterfaceRemove()</slot>
     3210    <slot>onMediaEnumDone()</slot>
    32093211    <slot>resetFirstRunFlag()</slot>
    32103212</slots>
  • trunk/src/VBox/Frontends/VirtualBox/ui/VBoxVMSettingsDlg.ui.h

    r5657 r5792  
    474474    polished = false;
    475475
     476    mAllowResetFRF = false;
     477    connect (&vboxGlobal(), SIGNAL (mediaEnumFinished (const VBoxMediaList &)),
     478             this, SLOT (onMediaEnumDone()));
    476479    mResetFirstRunFlag = false;
    477480
     
    826829    /* Boot-order table */
    827830    tblBootOrder = new BootItemsList (groupBox12, "tblBootOrder");
    828     connect (tblBootOrder, SIGNAL (bootSequenceChanged()),
    829              this, SLOT (resetFirstRunFlag()));
     831
    830832    /* Fixing focus order for BootItemsList */
    831833    setTabOrder (tbwGeneral, tblBootOrder);
     
    11371139
    11381140
     1141void VBoxVMSettingsDlg::onMediaEnumDone()
     1142{
     1143    mAllowResetFRF = true;
     1144}
     1145
     1146
    11391147void VBoxVMSettingsDlg::resetFirstRunFlag()
    11401148{
    1141     mResetFirstRunFlag = true;
     1149    if (mAllowResetFRF)
     1150        mResetFirstRunFlag = true;
    11421151}
    11431152
     
    15701579    /* Boot-order */
    15711580    tblBootOrder->getFromMachine (machine);
     1581    connect (tblBootOrder, SIGNAL (bootSequenceChanged()),
     1582             this, SLOT (resetFirstRunFlag()));
    15721583
    15731584    /* ACPI */
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