VirtualBox

Changeset 106143 in vbox


Ignore:
Timestamp:
Sep 24, 2024 7:53:49 PM (4 months ago)
Author:
vboxsync
Message:

FE/Qt: bugref:10180: Moving VM CleanupMode from DetachAllReturnHardDisksOnly to DetachAllReturnHardDisksAndVMRemovable; That is used in two cases, when you are removing some VM manually and when it's being removed automatically by the New VM wizard in case of failure.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserModel.cpp

    r106061 r106143  
    19211921        {
    19221922            /* Unregister machine first: */
    1923             CMediumVector media = comMachine.Unregister(KCleanupMode_DetachAllReturnHardDisksOnly);
     1923            CMediumVector media = comMachine.Unregister(KCleanupMode_DetachAllReturnHardDisksAndVMRemovable);
    19241924            if (!comMachine.isOk())
    19251925            {
     
    19341934        {
    19351935            /* Unregister machine first: */
    1936             CMediumVector media = comMachine.Unregister(KCleanupMode_DetachAllReturnHardDisksOnly);
     1936            CMediumVector media = comMachine.Unregister(KCleanupMode_DetachAllReturnHardDisksAndVMRemovable);
    19371937            if (!comMachine.isOk())
    19381938            {
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVM.cpp

    r105851 r106143  
    342342    {
    343343        /* Unregister VM on failure: */
    344         const QVector<CMedium> media = m_machine.Unregister(KCleanupMode_DetachAllReturnHardDisksOnly);
     344        const QVector<CMedium> media = m_machine.Unregister(KCleanupMode_DetachAllReturnHardDisksAndVMRemovable);
    345345        if (!m_machine.isOk())
    346346            UINotificationMessage::cannotRemoveMachine(m_machine, notificationCenter());
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