mirror of
https://git.wownero.com/wowlet/wowlet.git
synced 2024-08-15 01:03:14 +00:00
Merge pull request 'History: change tooltip for failed transactions' (#12) from tobtoht/feather:history_note into master
Reviewed-on: https://git.wownero.com/feather/feather/pulls/12
This commit is contained in:
commit
a0c6a75c09
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()) {
|
||||
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()));
|
||||
else
|
||||
result = QString("%1 confirmations").arg(QString::number(tInfo.confirmations()));
|
||||
|
|
Loading…
Reference in a new issue