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) {