VirtualBox

Changeset 41230 in vbox for trunk/src


Ignore:
Timestamp:
May 10, 2012 10:38:37 AM (13 years ago)
Author:
vboxsync
Message:

FE/Qt: 6123: VirtualBox wizards: Avoid superfluous warnings for an expert-mode.

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  
    277277    startProcessing();
    278278
    279     /* Make sure such virtual-disk doesn't exists already: */
     279    /* Make sure such virtual-disk doesn't exists: */
    280280    QString strMediumPath(mediumPath());
    281     if (fResult && QFileInfo(strMediumPath).exists())
    282     {
     281    fResult = !QFileInfo(strMediumPath).exists();
     282    if (!fResult)
    283283        msgCenter().sayCannotOverwriteHardDiskStorage(this, strMediumPath);
    284         fResult = false;
    285     }
    286284
    287285    /* Try to copy virtual-disk: */
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportAppPageExpert.cpp

    r41021 r41230  
    3333#include "UIWizardExportAppDefs.h"
    3434#include "VBoxGlobal.h"
    35 #include "UIMessageCenter.h"
    3635#include "QILabelSeparator.h"
    3736#include "VBoxFilePathSelectorWidget.h"
     
    267266    startProcessing();
    268267
    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 
    280268    /* Try to export appliance: */
    281     if (fResult)
    282         fResult = qobject_cast<UIWizardExportApp*>(wizard())->exportAppliance();
     269    fResult = qobject_cast<UIWizardExportApp*>(wizard())->exportAppliance();
    283270
    284271    /* Unlock finish button: */
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvd/UIWizardNewVDPageExpert.cpp

    r41021 r41230  
    295295    startProcessing();
    296296
    297     /* Make sure that virtual-disk doesn't exists: */
     297    /* Make sure such virtual-disk doesn't exists: */
    298298    QString strMediumPath(mediumPath());
    299     if (fResult && QFileInfo(strMediumPath).exists())
    300     {
     299    fResult = !QFileInfo(strMediumPath).exists();
     300    if (!fResult)
    301301        msgCenter().sayCannotOverwriteHardDiskStorage(this, strMediumPath);
    302         fResult = false;
    303     }
    304302
    305303    /* Try to create virtual-disk: */
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageExpert.cpp

    r41021 r41230  
    3232#include "UIWizardNewVM.h"
    3333#include "UIIconPool.h"
    34 #include "UIMessageCenter.h"
    3534#include "VBoxOSTypeSelectorWidget.h"
    3635#include "VBoxGuestRAMSlider.h"
     
    295294        if (fResult)
    296295        {
    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())
    303297            {
    304298                /* Show the New Virtual Disk wizard if necessary: */
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