Fix cmd+Q invalidating the layout somehow
authorromibi <romibi@bluewin.ch>
Sat, 9 Jul 2016 16:30:44 +0000 (18:30 +0200)
committerManuel Nickschas <sputnick@quassel-irc.org>
Wed, 7 Sep 2016 20:47:02 +0000 (22:47 +0200)
commit89175f57858e885d23dac1401f6f14db20ba9002
tree6ecd0f9fb83119fb4b77e62638b47712ca743ca9
parent236ad337e4f2bb4227547efe590942fe2b6c6052
Fix cmd+Q invalidating the layout somehow

On Mac OSX Qt Applications (with Frameworks packaged) receive the
CloseEvent twice. (See https://bugreports.qt.io/browse/QTBUG-43344)
This triggers a bug where Quassels Main-Window stays hidden and all
Layout states get reset on next launch.
Workaround by checking if event already received...

Resolves GH-230.
src/qtui/mainwin.cpp
src/qtui/mainwin.h