VirtualBox

Ignore:
Timestamp:
Apr 17, 2015 1:27:10 PM (10 years ago)
Author:
vboxsync
Message:

FE/Qt: VM settings: Alter few ExtPack related NLS.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsGeneral.cpp

    r55305 r55329  
    3131/* COM includes: */
    3232# include "CMedium.h"
     33# include "CExtPack.h"
     34# include "CExtPackManager.h"
    3335# include "CMediumAttachment.h"
    3436#endif /* !VBOX_WITH_PRECOMPILED_HEADERS */
     
    398400    if (m_pCheckBoxEncryption->isChecked())
    399401    {
     402#ifdef VBOX_WITH_EXTPACK
     403        /* Encryption Extension Pack presence test: */
     404        const CExtPack extPack = vboxGlobal().virtualBox().GetExtensionPackManager().Find(GUI_ExtPackName);
     405        if (extPack.isNull() || !extPack.GetUsable())
     406        {
     407            message.second << tr("You are trying to encrypt this virtual machine. "
     408                                 "However, this requires the <i>%1</i> to be installed. "
     409                                 "Please install the Extension Pack from the VirtualBox download site.")
     410                                 .arg(GUI_ExtPackName);
     411            fPass = false;
     412        }
     413#endif /* VBOX_WITH_EXTPACK */
     414
    400415        /* Cipher should be chosen if once changed: */
    401416        AssertPtrReturn(m_pComboCipher, false);
     
    405420            if (m_pComboCipher->currentIndex() == 0)
    406421                message.second << tr("Encryption cipher type not specified.");
     422            fPass = false;
    407423        }
     424
    408425        /* Password should be entered and confirmed if once changed: */
    409426        AssertPtrReturn(m_pEditorEncryptionPassword, false);
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