- Timestamp:
- May 30, 2007 1:55:20 PM (18 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/ui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/ui/VBoxVMSettingsDlg.ui
r2915 r2932 2785 2785 <variable access="private">QIRichLabel *whatsThisLabel;</variable> 2786 2786 <variable access="private">BootItemsList *tblBootOrder;</variable> 2787 <variable access="private">bool m IsBootSettingsChanged;</variable>2787 <variable access="private">bool mResetFirstRunFlag;</variable> 2788 2788 </variables> 2789 2789 <slots> … … 2822 2822 <slot>updateInterfaces( QWidget* )</slot> 2823 2823 <slot>networkPageUpdate( QWidget* )</slot> 2824 <slot> bootSequenceChanged()</slot>2824 <slot>resetFirstRunFlag()</slot> 2825 2825 </slots> 2826 2826 <functions> -
trunk/src/VBox/Frontends/VirtualBox/ui/VBoxVMSettingsDlg.ui.h
r2930 r2932 400 400 polished = false; 401 401 402 mResetFirstRunFlag = false; 403 402 404 setIcon (QPixmap::fromMimeSource ("settings_16px.png")); 403 405 … … 737 739 tblBootOrder = new BootItemsList (groupBox12, "tblBootOrder"); 738 740 connect (tblBootOrder, SIGNAL (bootSequenceChanged()), 739 this, SLOT ( bootSequenceChanged()));741 this, SLOT (resetFirstRunFlag())); 740 742 /* Fixing focus order for BootItemsList */ 741 743 setTabOrder (tbwGeneral, tblBootOrder); … … 853 855 854 856 VBoxGlobal::centerWidget (this, parentWidget()); 855 856 mIsBootSettingsChanged = false;857 857 } 858 858 … … 911 911 912 912 913 void VBoxVMSettingsDlg:: bootSequenceChanged()914 { 915 m IsBootSettingsChanged= true;913 void VBoxVMSettingsDlg::resetFirstRunFlag() 914 { 915 mResetFirstRunFlag = true; 916 916 } 917 917 … … 919 919 void VBoxVMSettingsDlg::hdaMediaChanged() 920 920 { 921 bootSequenceChanged();921 resetFirstRunFlag(); 922 922 uuidHDA = grbHDA->isChecked() ? cbHDA->getId() : QUuid(); 923 923 txHDA->setText (getHdInfo (grbHDA, uuidHDA)); … … 929 929 void VBoxVMSettingsDlg::hdbMediaChanged() 930 930 { 931 bootSequenceChanged();931 resetFirstRunFlag(); 932 932 uuidHDB = grbHDB->isChecked() ? cbHDB->getId() : QUuid(); 933 933 txHDB->setText (getHdInfo (grbHDB, uuidHDB)); … … 939 939 void VBoxVMSettingsDlg::hddMediaChanged() 940 940 { 941 bootSequenceChanged();941 resetFirstRunFlag(); 942 942 uuidHDD = grbHDD->isChecked() ? cbHDD->getId() : QUuid(); 943 943 txHDD->setText (getHdInfo (grbHDD, uuidHDD)); … … 949 949 void VBoxVMSettingsDlg::cdMediaChanged() 950 950 { 951 bootSequenceChanged();951 resetFirstRunFlag(); 952 952 uuidISODVD = bgDVD->isChecked() ? cbISODVD->getId() : QUuid(); 953 953 /* revailidate */ … … 958 958 void VBoxVMSettingsDlg::fdMediaChanged() 959 959 { 960 bootSequenceChanged();960 resetFirstRunFlag(); 961 961 uuidISOFloppy = bgFloppy->isChecked() ? cbISOFloppy->getId() : QUuid(); 962 962 /* revailidate */ … … 1728 1728 } 1729 1729 1730 /* Clear the "GUI_FirstRun" extra data key in case of one of the boot1731 * settings waschanged */1732 if (m IsBootSettingsChanged)1730 /* Clear the "GUI_FirstRun" extra data key in case if the boot order 1731 * and/or disk configuration were changed */ 1732 if (mResetFirstRunFlag) 1733 1733 cmachine.SetExtraData (GUI_FirstRun, QString::null); 1734 1734 … … 1826 1826 void VBoxVMSettingsDlg::showVDImageManager (QUuid *id, VBoxMediaComboBox *cbb, QLabel*) 1827 1827 { 1828 bootSequenceChanged();1829 1830 1828 VBoxDefs::DiskType type = VBoxDefs::InvalidType; 1831 1829 if (cbb == cbISODVD) … … 1840 1838 QUuid machineId = cmachine.GetId(); 1841 1839 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 1844 1850 cbb->setCurrentItem (*id); 1845 1851 cbb->setFocus();
Note:
See TracChangeset
for help on using the changeset viewer.