pboyer/flood — pull request #99 by marimano (2014-12-12 12:08:49+00:00)
Title: REACH-144 Clearing home ws stops working after cancelling Save as dialog (NWK)

When a user refuses to save a file in Save as dialog (press Cancel or X) `currentAction` should be set `actions.waitForRequest`. That means next action is allowed to be processed. But there is no way to handle `close` event of Save as dialog - we can subscribe only on `change` event which doesn't fire in case or Cancel or X.
My solution is next: set a flag to true right before opening the dialog that means save as dialog is opened, set the flag to false on change event (the dialog is closed by pressing save button) and before checking `currentAction` check this flag