- Timestamp:
- May 10, 2012 10:38:37 AM (13 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/wizards
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevd/UIWizardCloneVDPageExpert.cpp
r41021 r41230 277 277 startProcessing(); 278 278 279 /* Make sure such virtual-disk doesn't exists already: */279 /* Make sure such virtual-disk doesn't exists: */ 280 280 QString strMediumPath(mediumPath()); 281 if (fResult && QFileInfo(strMediumPath).exists())282 {281 fResult = !QFileInfo(strMediumPath).exists(); 282 if (!fResult) 283 283 msgCenter().sayCannotOverwriteHardDiskStorage(this, strMediumPath); 284 fResult = false;285 }286 284 287 285 /* Try to copy virtual-disk: */ -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportAppPageExpert.cpp
r41021 r41230 33 33 #include "UIWizardExportAppDefs.h" 34 34 #include "VBoxGlobal.h" 35 #include "UIMessageCenter.h"36 35 #include "QILabelSeparator.h" 37 36 #include "VBoxFilePathSelectorWidget.h" … … 267 266 startProcessing(); 268 267 269 /* Ask user about machines which are in save state currently: */270 QStringList savedMachines;271 QList<QListWidgetItem*> pItems = m_pVMSelector->selectedItems();272 for (int i=0; i < pItems.size(); ++i)273 {274 if (static_cast<VMListWidgetItem*>(pItems.at(i))->isInSaveState())275 savedMachines << pItems.at(i)->text();276 }277 if (!savedMachines.isEmpty())278 fResult = msgCenter().confirmExportMachinesInSaveState(savedMachines, this);279 280 268 /* Try to export appliance: */ 281 if (fResult) 282 fResult = qobject_cast<UIWizardExportApp*>(wizard())->exportAppliance(); 269 fResult = qobject_cast<UIWizardExportApp*>(wizard())->exportAppliance(); 283 270 284 271 /* Unlock finish button: */ -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvd/UIWizardNewVDPageExpert.cpp
r41021 r41230 295 295 startProcessing(); 296 296 297 /* Make sure thatvirtual-disk doesn't exists: */297 /* Make sure such virtual-disk doesn't exists: */ 298 298 QString strMediumPath(mediumPath()); 299 if (fResult && QFileInfo(strMediumPath).exists())300 {299 fResult = !QFileInfo(strMediumPath).exists(); 300 if (!fResult) 301 301 msgCenter().sayCannotOverwriteHardDiskStorage(this, strMediumPath); 302 fResult = false;303 }304 302 305 303 /* Try to create virtual-disk: */ -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageExpert.cpp
r41021 r41230 32 32 #include "UIWizardNewVM.h" 33 33 #include "UIIconPool.h" 34 #include "UIMessageCenter.h"35 34 #include "VBoxOSTypeSelectorWidget.h" 36 35 #include "VBoxGuestRAMSlider.h" … … 295 294 if (fResult) 296 295 { 297 if (!m_pDiskCnt->isChecked()) 298 { 299 /* Ask user about disk-less machine: */ 300 fResult = msgCenter().confirmHardDisklessMachine(this); 301 } 302 else if (m_pDiskCreate->isChecked()) 296 if (m_pDiskCnt->isChecked() && m_pDiskCreate->isChecked()) 303 297 { 304 298 /* Show the New Virtual Disk wizard if necessary: */
Note:
See TracChangeset
for help on using the changeset viewer.