VirtualBox

Ignore:
Timestamp:
Mar 12, 2015 3:20:21 PM (10 years ago)
Author:
vboxsync
Message:

FE/Qt: 7676: Runtime UI: Disk Encryption (DE) support: Ups, forgot the condition in r98900.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.cpp

    r54731 r54732  
    696696        }
    697697    }
    698     /* Ask for disk encryption passwords: */
     698    /* Ask for disk encryption passwords if necessary: */
    699699    EncryptionPasswordsMap encryptionPasswords;
    700     QPointer<UIAddDiskEncryptionPasswordDialog> pDlg =
    701          new UIAddDiskEncryptionPasswordDialog(machineLogic()->activeMachineWindow(),
    702                                                encryptedPasswordIds);
    703     if (pDlg->exec() == QDialog::Accepted)
    704         encryptionPasswords = pDlg->encryptionPasswords();
    705     if (pDlg)
    706         delete pDlg;
     700    if (!encryptedPasswordIds.isEmpty())
     701    {
     702        QPointer<UIAddDiskEncryptionPasswordDialog> pDlg =
     703             new UIAddDiskEncryptionPasswordDialog(machineLogic()->activeMachineWindow(),
     704                                                   encryptedPasswordIds);
     705        if (pDlg->exec() == QDialog::Accepted)
     706            encryptionPasswords = pDlg->encryptionPasswords();
     707        if (pDlg)
     708            delete pDlg;
     709    }
    707710
    708711    /* Power UP machine: */
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