Changeset 55329 in vbox for trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsGeneral.cpp
- Timestamp:
- Apr 17, 2015 1:27:10 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsGeneral.cpp
r55305 r55329 31 31 /* COM includes: */ 32 32 # include "CMedium.h" 33 # include "CExtPack.h" 34 # include "CExtPackManager.h" 33 35 # include "CMediumAttachment.h" 34 36 #endif /* !VBOX_WITH_PRECOMPILED_HEADERS */ … … 398 400 if (m_pCheckBoxEncryption->isChecked()) 399 401 { 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 400 415 /* Cipher should be chosen if once changed: */ 401 416 AssertPtrReturn(m_pComboCipher, false); … … 405 420 if (m_pComboCipher->currentIndex() == 0) 406 421 message.second << tr("Encryption cipher type not specified."); 422 fPass = false; 407 423 } 424 408 425 /* Password should be entered and confirmed if once changed: */ 409 426 AssertPtrReturn(m_pEditorEncryptionPassword, false);
Note:
See TracChangeset
for help on using the changeset viewer.