Added more meaningful comment to the command progress resetter. [skip ci]

This commit is contained in:
Jammyjamjamman 2018-02-21 20:19:22 +00:00
parent 92176afd77
commit 996ba5e27d
No known key found for this signature in database
GPG Key ID: A5541C132A56EAB4

View File

@ -2770,8 +2770,10 @@ namespace Glest
delete commands.back ();
commands.pop_back ();
// Reset the progress if the last task in the queue was cancelled.
/// TODO: extra if statement needed adding to fix this bug. Can this be avoided?
// Reset the progress if the last command in the queue was cancelled.
// We don't want to reset the progress if we're not removing the last command,
// because then the progress of the actual command in progress.
/// TODO: extra if statement below needed adding make the reset function properly. Can this be avoided?
if (commands.empty()) resetProgress2();
safeMutex.ReleaseLock ();