Changeset 548 in vbox for trunk/src/VBox/Frontends/VirtualBox/ui/VBoxVMSettingsDlg.ui.h
- Timestamp:
- Feb 2, 2007 1:57:12 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/ui/VBoxVMSettingsDlg.ui.h
r441 r548 658 658 { 659 659 /* setup necessary combobox item */ 660 cbHDA->setRequiredItem (uuidHDA); 661 cbHDB->setRequiredItem (uuidHDB); 662 cbHDD->setRequiredItem (uuidHDD); 663 cbISODVD->setRequiredItem (uuidISODVD); 664 cbISOFloppy->setRequiredItem (uuidISOFloppy); 665 /* request for refresh every combo-box */ 666 cbHDA->setReadyForRefresh(); 667 cbHDB->setReadyForRefresh(); 668 cbHDD->setReadyForRefresh(); 669 cbISODVD->setReadyForRefresh(); 670 cbISOFloppy->setReadyForRefresh(); 671 /* starting media-enumerating process */ 672 vboxGlobal().startEnumeratingMedia(); 660 cbHDA->setCurrentItem (uuidHDA); 661 cbHDB->setCurrentItem (uuidHDB); 662 cbHDD->setCurrentItem (uuidHDD); 663 cbISODVD->setCurrentItem (uuidISODVD); 664 cbISOFloppy->setCurrentItem (uuidISOFloppy); 665 /* check if the enumeration process has been started yet */ 666 if (!vboxGlobal().isMediaEnumerationStarted()) 667 vboxGlobal().startEnumeratingMedia(); 668 else 669 { 670 cbHDA->refresh(); 671 cbHDB->refresh(); 672 cbHDD->refresh(); 673 cbISODVD->refresh(); 674 cbISOFloppy->refresh(); 675 } 673 676 } 674 677 … … 677 680 { 678 681 uuidHDA = grbHDA->isChecked() ? cbHDA->getId() : QUuid(); 679 cbHDA->setRequiredItem (uuidHDA);680 682 txHDA->setText (getHdInfo (grbHDA, uuidHDA)); 681 683 /* revailidate */ … … 687 689 { 688 690 uuidHDB = grbHDB->isChecked() ? cbHDB->getId() : QUuid(); 689 cbHDB->setRequiredItem (uuidHDB);690 691 txHDB->setText (getHdInfo (grbHDB, uuidHDB)); 691 692 /* revailidate */ … … 697 698 { 698 699 uuidHDD = grbHDD->isChecked() ? cbHDD->getId() : QUuid(); 699 cbHDD->setRequiredItem (uuidHDD);700 700 txHDD->setText (getHdInfo (grbHDD, uuidHDD)); 701 701 /* revailidate */ … … 707 707 { 708 708 uuidISODVD = bgDVD->isChecked() ? cbISODVD->getId() : QUuid(); 709 cbISODVD->setRequiredItem (uuidISODVD);710 709 /* revailidate */ 711 710 wvalDVD->revalidate(); … … 716 715 { 717 716 uuidISOFloppy = bgFloppy->isChecked() ? cbISOFloppy->getId() : QUuid(); 718 cbISOFloppy->setRequiredItem (uuidISOFloppy);719 717 /* revailidate */ 720 718 wvalFloppy->revalidate(); … … 1288 1286 1289 1287 /* request for media shortcuts update */ 1290 cbHDA->setBelongsTo (machine.GetId());1291 cbHDB->setBelongsTo (machine.GetId());1292 cbHDD->setBelongsTo (machine.GetId());1288 cbHDA->setBelongsTo (machine.GetId()); 1289 cbHDB->setBelongsTo (machine.GetId()); 1290 cbHDD->setBelongsTo (machine.GetId()); 1293 1291 updateShortcuts(); 1294 1292 … … 1541 1539 QUuid machineId = cmachine.GetId(); 1542 1540 dlg.setup (type, true, &machineId, (const VBoxMediaList*)0, cmachine); 1543 if (dlg.exec() == VBoxDiskImageManagerDlg::Accepted)1544 *id = dlg.getSelectedUuid();1545 updateShortcuts();1541 *id = dlg.exec() == VBoxDiskImageManagerDlg::Accepted ? 1542 dlg.getSelectedUuid() : cbb->getId(); 1543 cbb->setCurrentItem (*id); 1546 1544 cbb->setFocus(); 1545 1546 /* revalidate pages with custom validation */ 1547 wvalHDD->revalidate(); 1548 wvalDVD->revalidate(); 1549 wvalFloppy->revalidate(); 1547 1550 } 1548 1551
Note:
See TracChangeset
for help on using the changeset viewer.