"Do you wish to proceed?"),
QMessageBox.StandardButton.Yes,
QMessageBox.StandardButton.No)==StandardButton.No.value()) {
return;
}
DBEncryptDialog dialog = new DBEncryptDialog();
dialog.exec();
if (dialog.okPressed()) {
Global.cipherPassword = dialog.getPassword();
encryptOnShutdown = true;
encryptCipher = dialog.getEncryptionMethod();
}
} else {
DBEncryptDialog dialog = new DBEncryptDialog();
dialog.setWindowTitle(tr("Database Decryption"));
dialog.hideEncryption();
dialog.exec();
if (dialog.okPressed()) {
if (!dialog.getPassword().equals(Global.cipherPassword)) {
QMessageBox.critical(null, tr("Incorrect Password"), tr("Incorrect Password"));
return;
}
decryptOnShutdown = true;
encryptCipher = "";