Refresh the transaction view after clearing the...
[novacoin.git] / src / qt / transactiontablemodel.cpp
index 01efd1f..00a5884 100644 (file)
@@ -261,6 +261,12 @@ void TransactionTableModel::updateConfirmations()
     }
 }
 
+void TransactionTableModel::refresh()
+{
+    priv->refreshWallet();
+    emit dataChanged(index(0, 0), index(priv->size() - 1, Amount));
+}
+
 int TransactionTableModel::rowCount(const QModelIndex &parent) const
 {
     Q_UNUSED(parent);