qtui: Fix initialization order after switching to PMF connects
authorManuel Nickschas <sputnick@quassel-irc.org>
Thu, 13 Sep 2018 21:35:29 +0000 (23:35 +0200)
committerManuel Nickschas <sputnick@quassel-irc.org>
Sun, 18 Nov 2018 10:06:43 +0000 (11:06 +0100)
commita0e333e994dce2d949a84930293382020e724596
tree67a391d62afd562ebbe3ff636806e5111a3b85e5
parentfcacaaf16551524c7ebb6114254d005274cc3d63
qtui: Fix initialization order after switching to PMF connects

Seems like switching to PMF connections has changed the order signals
are processed in, resulting in the UI being initialized after the
session manager asks for saving the UI state (for whatever reason).

Make this less fragile (and avoid a crash when using KDE) by
connecting to the session manager only after initializing the UI, and
replace the initUi() slot by a lambda while we're at it.
src/qtui/qtuiapplication.cpp
src/qtui/qtuiapplication.h