Fixes bug where nicklist was broken on first start
authorJanne Koschinski <janne@kuschku.de>
Tue, 15 Jan 2019 16:32:08 +0000 (17:32 +0100)
committerManuel Nickschas <sputnick@quassel-irc.org>
Wed, 13 Feb 2019 19:38:46 +0000 (20:38 +0100)
commit4a5f59de4b332d16ff8942051e29d9354b5bbac3
tree1861cfc30fc19f5eed1c307d82016dfda6cb9cb0
parent029509c33da35a63d425e001650bcd96da5be30c
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