Browse Source

Showing query/error status on line of respective transfer

Source commit: 3950adea636d5f5232e1ce1771bdb3425595b6bf
Martin Prikryl 8 years ago
parent
commit
0b368c7be1
1 changed files with 7 additions and 5 deletions
  1. 7 5
      source/windows/QueueController.cpp

+ 7 - 5
source/windows/QueueController.cpp

@@ -361,6 +361,7 @@ void __fastcall TQueueController::FillQueueViewItem(TListItem * Item,
     if (!OnlyLine)
     {
       Image = -1;
+      ProgressStr = L"";
     }
 
     // cannot use ProgressData->Temp as it is set only after the transfer actually starts
@@ -421,13 +422,14 @@ void __fastcall TQueueController::FillQueueViewItem(TListItem * Item,
       {
         Values[2] =
           FormatPanelBytes(ProgressData->TransferredSize, WinConfiguration->FormatSizeBytes);
-        Values[5] = FORMAT(L"%d%%", (ProgressData->TransferProgress()));
+
+        if (ProgressStr.IsEmpty())
+        {
+          ProgressStr = FORMAT(L"%d%%", (ProgressData->TransferProgress()));
+        }
       }
     }
-    else
-    {
-      Values[0] = ProgressStr;
-    }
+    Values[5] = ProgressStr;
   }
 
   Item->StateIndex = (!BlinkHide ? State : -1);