mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-10 22:18:54 +01:00
qt: Set flag after inital load on transaction table model
This commit is contained in:
@@ -97,6 +97,8 @@ public:
|
|||||||
QList<TransactionRecord> cachedWallet;
|
QList<TransactionRecord> cachedWallet;
|
||||||
|
|
||||||
bool fQueueNotifications = false;
|
bool fQueueNotifications = false;
|
||||||
|
/** True when model finishes loading all wallet transactions on start */
|
||||||
|
bool m_loaded = false;
|
||||||
std::vector< TransactionNotification > vQueueNotifications;
|
std::vector< TransactionNotification > vQueueNotifications;
|
||||||
|
|
||||||
void NotifyTransactionChanged(const uint256 &hash, ChangeType status);
|
void NotifyTransactionChanged(const uint256 &hash, ChangeType status);
|
||||||
@@ -106,8 +108,7 @@ public:
|
|||||||
*/
|
*/
|
||||||
void refreshWallet(interfaces::Wallet& wallet)
|
void refreshWallet(interfaces::Wallet& wallet)
|
||||||
{
|
{
|
||||||
qDebug() << "TransactionTablePriv::refreshWallet";
|
assert(!m_loaded);
|
||||||
cachedWallet.clear();
|
|
||||||
{
|
{
|
||||||
for (const auto& wtx : wallet.getWalletTxs()) {
|
for (const auto& wtx : wallet.getWalletTxs()) {
|
||||||
if (TransactionRecord::showTransaction()) {
|
if (TransactionRecord::showTransaction()) {
|
||||||
@@ -115,6 +116,7 @@ public:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
m_loaded = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Update our model of the wallet incrementally, to synchronize our model of the wallet
|
/* Update our model of the wallet incrementally, to synchronize our model of the wallet
|
||||||
|
|||||||
Reference in New Issue
Block a user