From 3bb26ce9a92e6e14f7bfbd5fea7af316122b9b34 Mon Sep 17 00:00:00 2001 From: adityapk00 Date: Wed, 21 Nov 2018 18:14:17 -0800 Subject: [PATCH] Fix bug where history wasn't getting cleared --- src/rpc.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/rpc.cpp b/src/rpc.cpp index 62bbba7..514bd5a 100644 --- a/src/rpc.cpp +++ b/src/rpc.cpp @@ -743,6 +743,13 @@ void RPC::refreshSentZTrans() { 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 txids; for (auto sentTx: sentZTxs) {