File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -97,6 +97,8 @@ class TransactionTablePriv
97
97
QList<TransactionRecord> cachedWallet;
98
98
99
99
bool fQueueNotifications = false ;
100
+ /* * True when model finishes loading all wallet transactions on start */
101
+ bool m_loaded = false ;
100
102
std::vector< TransactionNotification > vQueueNotifications;
101
103
102
104
void NotifyTransactionChanged (const uint256 &hash, ChangeType status);
@@ -106,15 +108,15 @@ class TransactionTablePriv
106
108
*/
107
109
void refreshWallet (interfaces::Wallet& wallet)
108
110
{
109
- qDebug () << " TransactionTablePriv::refreshWallet" ;
110
- cachedWallet.clear ();
111
+ assert (!m_loaded);
111
112
{
112
113
for (const auto & wtx : wallet.getWalletTxs ()) {
113
114
if (TransactionRecord::showTransaction ()) {
114
115
cachedWallet.append (TransactionRecord::decomposeTransaction (wtx));
115
116
}
116
117
}
117
118
}
119
+ m_loaded = true ;
118
120
}
119
121
120
122
/* Update our model of the wallet incrementally, to synchronize our model of the wallet
You can’t perform that action at this time.
0 commit comments