VirtualBox

Changeset 93547 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Feb 2, 2022 5:28:38 PM (3 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9515. Some small fixes related to cleaning up in new vm wizard.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMNameOSTypePage.cpp

    r93545 r93547  
    259259    if (!cleanupMachineFolder(pWizard))
    260260    {
    261         UINotificationMessage::cannotRemoveMachineFolder(strMachineFolder, pWizard->notificationCenter());
     261        UINotificationMessage::cannotRemoveMachineFolder(strCreatedFolder, pWizard->notificationCenter());
    262262        return false;
    263263    }
     
    301301    {
    302302        /* Try to cleanup folder (and it's predecessors): */
    303         bool fMachineFolderRemoved = QDir().rmpath(strCreatedFolder);
     303        bool fMachineFolderRemoved = QDir(strCreatedFolder).removeRecursively();
    304304        /* Reset machine folder value: */
    305305        if (fMachineFolderRemoved)
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