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:16:27 +0000 (23:16 +0200)
commit65e81b756816cc4ac0eeb4628552ccfd8a3b1ac3
tree4c8f218fd82a41749977138d8caf4c0f0720a3f8
parent11f042e025f1e8e304c3de2cb7d3b55de39d9ed6
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