From: CryptoManiac Date: Fri, 20 Feb 2015 23:59:31 +0000 (+0300) Subject: Merge pull request #173 from fsb4000/Qt X-Git-Tag: nvc-v0.5.3~80 X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=commitdiff_plain;h=8165a773f95a152c2c26d605c10dc747b8dc8170;hp=c953b00a790512e8f5bc3ee84870adf867b446d1 Merge pull request #173 from fsb4000/Qt производительность Qt --- diff --git a/src/qt/walletmodel.cpp b/src/qt/walletmodel.cpp index f7658b0..d0620ca 100644 --- a/src/qt/walletmodel.cpp +++ b/src/qt/walletmodel.cpp @@ -117,9 +117,6 @@ void WalletModel::checkBalanceChanged() void WalletModel::updateTransaction(const QString &hash, int status) { - if(transactionTableModel) - transactionTableModel->updateTransaction(hash, status); - // Balance and number of transactions might have changed checkBalanceChanged(); @@ -128,6 +125,9 @@ void WalletModel::updateTransaction(const QString &hash, int status) { cachedNumTransactions = newNumTransactions; emit numTransactionsChanged(newNumTransactions); + + if(transactionTableModel) + transactionTableModel->updateTransaction(hash, status); } }