Bugfix: prevent calendar popup from being destoyed.

The window should intercept the delete event and hide itself,
otherwise it's gone forever.
Merge pull request #29 from escherdragon/ready4upstream

Bugfix: prevent calendar popup from being destoyed.