Updates session file before last window is closed

Review Request #101346 - Created May 12, 2011 and submitted

Tirtha Chatterjee
Earlier, when a user had two windows open, and closed one of them, it was not removed from the session file unless some new tab activity happened. This tab ensures that the session file is updated before the last open window is closed. This will cause all unsaved changes to be saved at the last moment.
Tested, works.
Andrea Diamantini

src/mainwindow.cpp (Diff revision 1)
It's not that obvious here that the signal is emitted while the last window is closing.
It needs a comment or (better?) to be moved in app dtor, IMHO.
Andrea Diamantini
Sorry for the late. It seems I forgot this...
Commit Hook
This review has been submitted with commit de060583b0e0c2faa44b1abbf792109676d8fdee by Tirtha Chatterjee to branch master.