}
interface->setBaseLayout();
- if (!type.compare("Encrypting") && !target.compare("External")) {
+ if ((!type.compare("encrypt") || !type.compare("Encrypting"))
+ && !target.compare("External")) {
progress.reset(new ExternalEncryptProgress(interface->getWindow()));
- } else if (!type.compare("Decrypting") && !target.compare("External")) {
+ } else if ((!type.compare("decrypt") || !type.compare("Decrypting"))
+ && !target.compare("External")) {
progress.reset(new ExternalDecryptProgress(interface->getWindow()));
- } else if (!type.compare("Encrypting") && !target.compare("Internal")) {
+ } else if ((!type.compare("encrypt") || !type.compare("Encrypting"))
+ && !target.compare("Internal")) {
progress.reset(new InternalEncryptProgress(interface->getWindow()));
- } else if (!type.compare("Decrypting") && !target.compare("Internal")) {
+ } else if ((!type.compare("decrypt") || !type.compare("Decrypting"))
+ && !target.compare("Internal")) {
progress.reset(new InternalDecryptProgress(interface->getWindow()));
} else {
throw runtime::Exception("Do not supported viewtype");