Properly save and restore the mainwindow state
authorManuel Nickschas <sputnick@quassel-irc.org>
Wed, 13 May 2009 21:16:27 +0000 (23:16 +0200)
committerManuel Nickschas <sputnick@quassel-irc.org>
Wed, 13 May 2009 21:20:41 +0000 (23:20 +0200)
commit525d0aa9b754a04f3caaf3f00890894ea0208c46
tree21e396ce3721dbdde3f13589571c895a09973333
parent7ca32fd5f81276c4a05e5e5727945cbe1d2a2a9e
Properly save and restore the mainwindow state

We now save size, position, maximize, minimize and hidden-to-tray on exit
and restore it at next start. Since Qt's restoreState() has some issues, I had
to workaround things a bit, so please test on your system and report if there are
still problems with the current implementation!

Fixes #677, fixes #452 (since the state is remembered, so just quit Quassel using the
tray context menu while it's hidden).
src/qtui/mainwin.cpp
src/qtui/mainwin.h