mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-03-25 06:55:32 +01:00
Qt: load wallet in UI after possible init aborts
This commit is contained in:
@@ -4095,8 +4095,6 @@ std::shared_ptr<CWallet> CWallet::CreateWalletFromFile(const std::string& name,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
uiInterface.LoadWallet(walletInstance);
|
|
||||||
|
|
||||||
int prev_version = walletInstance->nWalletVersion;
|
int prev_version = walletInstance->nWalletVersion;
|
||||||
if (gArgs.GetBoolArg("-upgradewallet", fFirstRun))
|
if (gArgs.GetBoolArg("-upgradewallet", fFirstRun))
|
||||||
{
|
{
|
||||||
@@ -4346,6 +4344,8 @@ std::shared_ptr<CWallet> CWallet::CreateWalletFromFile(const std::string& name,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
uiInterface.LoadWallet(walletInstance);
|
||||||
|
|
||||||
// Register with the validation interface. It's ok to do this after rescan since we're still holding cs_main.
|
// Register with the validation interface. It's ok to do this after rescan since we're still holding cs_main.
|
||||||
RegisterValidationInterface(walletInstance.get());
|
RegisterValidationInterface(walletInstance.get());
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user