Skip to content

Commit

Permalink
[BUG][GUI] Receive widget: check typeRole before refreshing view
Browse files Browse the repository at this point in the history
  • Loading branch information
random-zebra committed Dec 15, 2020
1 parent 9e2d825 commit 9949d90
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/qt/pivx/receivewidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,9 @@ void ReceiveWidget::loadWalletModel()
void ReceiveWidget::refreshView(const QModelIndex& tl, const QModelIndex& br)
{
const QModelIndex& index = tl.sibling(tl.row(), AddressTableModel::Address);
const QString& typeRole = index.data(AddressTableModel::TypeRole).toString();
if (shieldedMode && typeRole != AddressTableModel::ShieldedReceive) return;
if (!shieldedMode && typeRole != AddressTableModel::Receive) return;
return refreshView(index.data(Qt::DisplayRole).toString());
}

Expand Down

0 comments on commit 9949d90

Please sign in to comment.