VirtualBox

Changeset 38440 in vbox


Ignore:
Timestamp:
Aug 12, 2011 3:32:49 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
73485
Message:

FE/Qt4: fix clone wizard and full clone mode when the VM has no snapshots

Location:
trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevm
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevm/UICloneVMWizard.cpp

    r38427 r38440  
    293293int UICloneVMWizardPage2::nextId() const
    294294{
    295     return m_pFullCloneRadio->isChecked() ? UICloneVMWizard::PageMode : -1;
     295    return m_pFullCloneRadio->isChecked() && wizard()->page(UICloneVMWizard::PageMode) ? UICloneVMWizard::PageMode : -1;
    296296}
    297297
     
    305305        QString strName = field("cloneName").toString();
    306306        bool fReinitMACs = field("reinitMACs").toBool();
    307         bool fResult = static_cast<UICloneVMWizard*>(wizard())->createClone(strName, KCloneMode_MachineState, fReinitMACs, true);
     307        bool fResult = static_cast<UICloneVMWizard*>(wizard())->createClone(strName, KCloneMode_MachineState, fReinitMACs, m_pLinkedCloneRadio->isChecked());
    308308        /* Finish performing long-time operation: */
    309309        endProcessing();
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevm/UICloneVMWizard.h

    r38241 r38440  
    7272
    7373    /* Returns parent wizard object: */
    74     UICloneVMWizard* wizard() { return qobject_cast<UICloneVMWizard*>(QIWizardPage::wizard()); }
     74    UICloneVMWizard* wizard() const { return qobject_cast<UICloneVMWizard*>(QIWizardPage::wizard()); }
    7575};
    7676
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette