From 6dbe9ad1eadc5fee65a71d68a78aef38f6d5cce4 Mon Sep 17 00:00:00 2001 From: furszy Date: Fri, 18 Dec 2020 11:11:35 -0300 Subject: [PATCH] GUI: Dashboard, fix type filtering disappearance. The combobox shouldn't get hide when there are transactions in the wallet, independently on the selected filter. If the user selects a type that it isn't in the wallet, the filter combobox will disappear, leaving the tx list empty and not allowing any other movement. --- src/qt/pivx/dashboardwidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qt/pivx/dashboardwidget.cpp b/src/qt/pivx/dashboardwidget.cpp index 0c1b8513ffc7..f1fc56fc2485 100644 --- a/src/qt/pivx/dashboardwidget.cpp +++ b/src/qt/pivx/dashboardwidget.cpp @@ -242,7 +242,7 @@ void DashboardWidget::onTxArrived(const QString& hash, const bool& isCoinStake, void DashboardWidget::showList() { - if (filter->rowCount() == 0) { + if (txModel->size() == 0) { ui->emptyContainer->setVisible(true); ui->listTransactions->setVisible(false); ui->comboBoxSortType->setVisible(false);