Browse Source

Incorrect assertion

Source commit: 482e7ee56211ae2bc94fc521a00986faba11dabb
Martin Prikryl 7 years ago
parent
commit
eb1c89d9aa
1 changed files with 2 additions and 1 deletions
  1. 2 1
      source/forms/CustomScpExplorer.cpp

+ 2 - 1
source/forms/CustomScpExplorer.cpp

@@ -830,7 +830,8 @@ void __fastcall TCustomScpExplorerForm::SetTaskbarListProgressValue(TFileOperati
   if (ProgressData->Operation != foCalculateSize)
   {
     int OverallProgress;
-    if (DebugAlwaysTrue(FProgressForm != NULL) && (FProgressForm->SynchronizeProgress != NULL))
+    // FProgressForm is null when this is called from SetQueueProgress
+    if ((FProgressForm != NULL) && (FProgressForm->SynchronizeProgress != NULL))
     {
       OverallProgress = FProgressForm->SynchronizeProgress->Progress(ProgressData);
     }