clang-tidy: Avoid memory leak in MainWin
authorManuel Nickschas <sputnick@quassel-irc.org>
Wed, 5 Sep 2018 18:58:46 +0000 (20:58 +0200)
committerManuel Nickschas <sputnick@quassel-irc.org>
Thu, 6 Sep 2018 06:02:07 +0000 (08:02 +0200)
commitbfeb38f1572e44bdfbfb7f4d47d6dc6ecc20439f
treef87aabdb99bba3036c3d2500e29173ed55b4a726
parentb40672ab5c48b577b31371c159e60d330fdd7ce5
clang-tidy: Avoid memory leak in MainWin

This one is legitimate: If no network is selected, the freshly
created ChannelListDlg instance is never deleted. Move instantiation
after the network ID check, so the dialog is shown (and self-deletes
on close). Set a parent for good measure, too.
src/qtui/mainwin.cpp