Skip to content

Commit

Permalink
Bug 1484: Failure when pressing Calculate button on Properties dialog…
Browse files Browse the repository at this point in the history
…, while another calculation is already in progress

https://winscp.net/tracker/1484

Source commit: 4904744292bf1037aa6ca2d1d50b0e2bac45b3b8
  • Loading branch information
martinprikryl committed Jan 27, 2018
1 parent 01bf015 commit 879777f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source/forms/Properties.cpp
Expand Up @@ -572,6 +572,7 @@ void __fastcall TPropertiesDialog::CalculateSizeButtonClick(
DebugAssert(FOnCalculateSize != NULL);

bool DoClose = false;
Enabled = false;
try
{
__int64 Size;
Expand All @@ -582,6 +583,7 @@ void __fastcall TPropertiesDialog::CalculateSizeButtonClick(
}
__finally
{
Enabled = true;
if (DoClose)
{
Close();
Expand Down

0 comments on commit 879777f

Please sign in to comment.