mirror of
https://github.com/feather-wallet/feather.git
synced 2024-12-23 03:59:29 +00:00
History: change tooltip for failed transactions
This commit is contained in:
parent
f029820a37
commit
36495922a1
1 changed files with 3 additions and 1 deletions
|
@ -104,7 +104,9 @@ QVariant TransactionHistoryModel::data(const QModelIndex &index, int role) const
|
||||||
switch(index.column()) {
|
switch(index.column()) {
|
||||||
case Column::Date:
|
case Column::Date:
|
||||||
{
|
{
|
||||||
if (tInfo.confirmations() < tInfo.confirmationsRequired())
|
if (tInfo.isFailed())
|
||||||
|
result = "Transaction failed";
|
||||||
|
else if (tInfo.confirmations() < tInfo.confirmationsRequired())
|
||||||
result = QString("%1/%2 confirmations").arg(QString::number(tInfo.confirmations()), QString::number(tInfo.confirmationsRequired()));
|
result = QString("%1/%2 confirmations").arg(QString::number(tInfo.confirmations()), QString::number(tInfo.confirmationsRequired()));
|
||||||
else
|
else
|
||||||
result = QString("%1 confirmations").arg(QString::number(tInfo.confirmations()));
|
result = QString("%1 confirmations").arg(QString::number(tInfo.confirmations()));
|
||||||
|
|
Loading…
Reference in a new issue