
BFilePanel always sends B_CANCEL when it hides (as documented in the BeBook), not just when the user cancels the file panel. Track what message we expect and only react to B_CANCEL when it means the user really canceled selecting the target folder.
BFilePanel always sends B_CANCEL when it hides (as documented in the BeBook), not just when the user cancels the file panel. Track what message we expect and only react to B_CANCEL when it means the user really canceled selecting the target folder.