Skip to content

Commit 3a03d2a

Browse files
committed
Qt: load wallet in UI after possible init aborts
1 parent 3f398d7 commit 3a03d2a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/wallet/wallet.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4095,8 +4095,6 @@ std::shared_ptr<CWallet> CWallet::CreateWalletFromFile(const std::string& name,
40954095
}
40964096
}
40974097

4098-
uiInterface.LoadWallet(walletInstance);
4099-
41004098
int prev_version = walletInstance->nWalletVersion;
41014099
if (gArgs.GetBoolArg("-upgradewallet", fFirstRun))
41024100
{
@@ -4346,6 +4344,8 @@ std::shared_ptr<CWallet> CWallet::CreateWalletFromFile(const std::string& name,
43464344
}
43474345
}
43484346

4347+
uiInterface.LoadWallet(walletInstance);
4348+
43494349
// Register with the validation interface. It's ok to do this after rescan since we're still holding cs_main.
43504350
RegisterValidationInterface(walletInstance.get());
43514351

0 commit comments

Comments
 (0)