Fixes bug where nicklist was broken on first start
authorJanne Koschinski <janne@kuschku.de>
Tue, 15 Jan 2019 16:23:14 +0000 (17:23 +0100)
committerManuel Nickschas <sputnick@quassel-irc.org>
Wed, 13 Feb 2019 19:39:21 +0000 (20:39 +0100)
commit270864a9f0502f5c1538d211eaa22b2141493ade
tree535855687d5f3612b2c474e26817b6c50a12f99c
parent7b80c9c6e57bfd8ac81034e6cec1527e6be50da6
Fixes bug where nicklist was broken on first start

Starting with commit 66e6d26 the nicklist gets hidden in
setDisconnectedState, but only unhidden in loadLayout.

As loadLayout skips the setVisible(true) if the state is empty, the
actual widget gets never shown, and the nicklist dock remains empty.

This was fixed by moving the setVisible call above the conditional
return.
src/qtui/mainwin.cpp