mirror of
https://github.com/monero-project/monero.git
synced 2024-12-23 20:19:34 +00:00
Merge pull request #4622
32ba6f3a
wallet2_api: fix generating new wallet in the GUI (moneromooo-monero)
This commit is contained in:
commit
ccc7e3afae
1 changed files with 1 additions and 1 deletions
|
@ -776,7 +776,7 @@ bool WalletImpl::setPassword(const std::string &password)
|
||||||
{
|
{
|
||||||
clearStatus();
|
clearStatus();
|
||||||
try {
|
try {
|
||||||
m_wallet->rewrite(m_wallet->get_wallet_file(), password);
|
m_wallet->change_password(m_wallet->get_wallet_file(), m_password, password);
|
||||||
m_password = password;
|
m_password = password;
|
||||||
} catch (const std::exception &e) {
|
} catch (const std::exception &e) {
|
||||||
setStatusError(e.what());
|
setStatusError(e.what());
|
||||||
|
|
Loading…
Reference in a new issue