Fixes: NB#293910 - crash if an applet is using MDialog::exec()
Fixes: NB#293910 - crash if an applet is using MDialog::exec()

Details:

Changed the behaviour so that control panel does not free the window
right after closing it, but only after all event processing is
done (no mainloop is running).

arcean/controlpanel,arcean/controlpanel,harmattan/meegotouch-controlpanel,harmattan/meegotouch-controlpanel,arcean/controlpanel,harmattan/meegotouch-controlpanel,arcean/controlpanel,arcean/controlpanel,harmattan/meegotouch-controlpanel