Changeset 37445 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Jun 14, 2011 2:40:45 PM (14 years ago)
- svn:sync-xref-src-repo-rev:
- 72251
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/VBoxMediaManagerDlg.cpp
r37406 r37445 1055 1055 0 /* default size, not important for copying */, 1056 1056 pItem->medium().medium() /* base medium for copying */); 1057 1058 if (wizard.exec() == QDialog::Accepted) 1059 { 1060 /* Search for the newly created hard disk: */ 1061 MediaItem *pItem = searchItem(mTwHD, wizard.hardDisk().GetId()); 1062 AssertReturnVoid(pItem); 1063 /* Select the newly created hard disk: */ 1064 mTwHD->setCurrentItem(pItem); 1065 } 1057 wizard.exec(); 1066 1058 } 1067 1059 -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newhd/UINewHDWizard.cpp
r37407 r37445 969 969 } 970 970 971 /* Inform everybody there is a new medium: */971 /* Assign hardDisk field value: */ 972 972 m_hardDisk = hardDisk; 973 vboxGlobal().addMedium(VBoxMedium(m_hardDisk, VBoxDefs::MediumType_HardDisk, KMediumState_Created)); 973 974 /* Depending on dialog type: */ 975 switch (wizardType()) 976 { 977 case UINewHDWizardType_Creating: 978 { 979 /* Inform everybody there is a new medium: */ 980 vboxGlobal().addMedium(VBoxMedium(m_hardDisk, VBoxDefs::MediumType_HardDisk, KMediumState_Created)); 981 break; 982 } 983 case UINewHDWizardType_Copying: 984 { 985 /* Just close the clone medium, it is not necessary yet: */ 986 m_hardDisk.Close(); 987 break; 988 } 989 default: 990 return false; 991 } 974 992 975 993 return true;
Note:
See TracChangeset
for help on using the changeset viewer.