Skip to content

Commit 6dbe9ad

Browse files
committed
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.
1 parent 05a7668 commit 6dbe9ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/qt/pivx/dashboardwidget.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ void DashboardWidget::onTxArrived(const QString& hash, const bool& isCoinStake,
242242

243243
void DashboardWidget::showList()
244244
{
245-
if (filter->rowCount() == 0) {
245+
if (txModel->size() == 0) {
246246
ui->emptyContainer->setVisible(true);
247247
ui->listTransactions->setVisible(false);
248248
ui->comboBoxSortType->setVisible(false);

0 commit comments

Comments
 (0)