Skip to content

Commit 442e2ea

Browse files
UI: Fix cancelled w/partial matches appear as active trades in tradehistorydialog
1 parent 846839e commit 442e2ea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/qt/tradehistorydialog.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ void TradeHistoryDialog::UpdateTradeHistoryTable()
182182
amountOutCell->setForeground(QColor("#EE0000"));
183183
amountInCell->setTextAlignment(Qt::AlignRight + Qt::AlignVCenter);
184184
amountInCell->setForeground(QColor("#00AA00"));
185-
if (objTH.status == "Cancelled" || objTH.status == "Filled") {
185+
if (objTH.status == "Cancelled" || objTH.status == "Filled" || objTH.status == "Part Cancel") {
186186
// dull the colors for non-active trades
187187
dateCell->setForeground(QColor("#707070"));
188188
statusCell->setForeground(QColor("#707070"));
@@ -479,7 +479,7 @@ void TradeHistoryDialog::UpdateData()
479479
amountOutCell->setForeground(QColor("#EE0000"));
480480
amountInCell->setTextAlignment(Qt::AlignRight + Qt::AlignVCenter);
481481
amountInCell->setForeground(QColor("#00AA00"));
482-
if (statusText == "Cancelled" || statusText == "Filled") {
482+
if (statusText == "Cancelled" || statusText == "Filled" || statusText == "Part Cancel") {
483483
// dull the colors for non-active trades
484484
dateCell->setForeground(QColor("#707070"));
485485
statusCell->setForeground(QColor("#707070"));

0 commit comments

Comments
 (0)