Fix Qt wallet model ownership calls

This commit is contained in:
Krystie
2026-05-10 02:52:39 -07:00
parent ce8be45ea5
commit 223029785c
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -229,7 +229,7 @@ int main(int argc, char *argv[])
// calling Shutdown().
ClientModel clientModel(&optionsModel);
WalletModel walletModel(pwalletMain, &optionsModel);
WalletModel walletModel(pwalletMain.get(), &optionsModel);
window.setClientModel(&clientModel);
window.setWalletModel(&walletModel);
+1 -1
View File
@@ -656,7 +656,7 @@ void TrianglesGUI::ensureMessageModel()
if(messageModel || !walletModel)
return;
setMessageModel(new MessageModel(pwalletMain, walletModel, this));
setMessageModel(new MessageModel(pwalletMain.get(), walletModel, this));
}
void TrianglesGUI::ensureSendCoinsPage()