Fix bug where history wasn't getting cleared
This commit is contained in:
@@ -743,6 +743,13 @@ void RPC::refreshSentZTrans() {
|
|||||||
|
|
||||||
auto sentZTxs = SentTxStore::readSentTxFile();
|
auto sentZTxs = SentTxStore::readSentTxFile();
|
||||||
|
|
||||||
|
// If there are no sent z txs, then empty the table.
|
||||||
|
// This happens when you clear history.
|
||||||
|
if (sentZTxs.isEmpty()) {
|
||||||
|
transactionsTableModel->addZSentData(sentZTxs);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
QList<QString> txids;
|
QList<QString> txids;
|
||||||
|
|
||||||
for (auto sentTx: sentZTxs) {
|
for (auto sentTx: sentZTxs) {
|
||||||
|
|||||||
Reference in New Issue
Block a user