Skip to content

Commit 0d0fe24

Browse files
random-zebraFuzzbawls
authored andcommitted
[BUG][GUI] Receive widget: check typeRole before refreshing view
Github-Pull: #2066 Rebased-From: 9949d90
1 parent 40e3203 commit 0d0fe24

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/qt/pivx/receivewidget.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,9 @@ void ReceiveWidget::loadWalletModel()
135135
void ReceiveWidget::refreshView(const QModelIndex& tl, const QModelIndex& br)
136136
{
137137
const QModelIndex& index = tl.sibling(tl.row(), AddressTableModel::Address);
138+
const QString& typeRole = index.data(AddressTableModel::TypeRole).toString();
139+
if (shieldedMode && typeRole != AddressTableModel::ShieldedReceive) return;
140+
if (!shieldedMode && typeRole != AddressTableModel::Receive) return;
138141
return refreshView(index.data(Qt::DisplayRole).toString());
139142
}
140143

0 commit comments

Comments
 (0)