Skip to content

Commit

Permalink
[GUI][Bug] cold staking screen, fixing show receive addresses list in…
Browse files Browse the repository at this point in the history
… owner address editLine.
  • Loading branch information
furszy committed Dec 7, 2019
1 parent c54dad3 commit 6ee4e57
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/qt/pivx/coldstakingwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -287,9 +287,12 @@ void ColdStakingWidget::onContactsClicked(){
menu->hide();
}

int contactsSize = isContactOwnerSelected ? walletModel->getAddressTableModel()->sizeSend() : walletModel->getAddressTableModel()->sizeColdSend();
int contactsSize = isContactOwnerSelected ? walletModel->getAddressTableModel()->sizeRecv() : walletModel->getAddressTableModel()->sizeColdSend();
if(contactsSize == 0) {
inform(tr("No contacts available, you can go to the contacts screen and add some there!"));
inform(isContactOwnerSelected ?
tr( "No receive addresses available, you can go to the receive screen and create some there!") :
tr("No contacts available, you can go to the contacts screen and add some there!")
);
return;
}

Expand Down

0 comments on commit 6ee4e57

Please sign in to comment.