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)
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.


No differences found