Wallet decryption support
[novacoin.git] / src / qt / walletmodel.cpp
index 2f2ccab..f7658b0 100644 (file)
@@ -302,8 +302,8 @@ bool WalletModel::setWalletEncrypted(bool encrypted, const SecureString &passphr
     }
     else
     {
-        // Decrypt -- TODO; not supported yet
-        return false;
+        // Decrypt
+        return wallet->DecryptWallet(passphrase);
     }
 }