From: Manuel Nickschas Date: Sat, 20 Oct 2007 10:30:12 +0000 (+0000) Subject: Actually create the ServerListDlg before using it. X-Git-Tag: 0.1.0~113 X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=commitdiff_plain;h=a420c75e4b91e933c0477650dff8eda3e59716bf Actually create the ServerListDlg before using it. --- diff --git a/src/qtui/mainwin.cpp b/src/qtui/mainwin.cpp index c24120b9..f94ee4a0 100644 --- a/src/qtui/mainwin.cpp +++ b/src/qtui/mainwin.cpp @@ -39,7 +39,8 @@ MainWin::MainWin(QtUi *_gui, QWidget *parent) : QMainWindow(parent), gui(_gui) { setWindowIconText("Quassel IRC"); statusBar()->showMessage(tr("Waiting for core...")); - + serverListDlg = new ServerListDlg(this); + settingsDlg = new SettingsDlg(this); } void MainWin::init() { @@ -79,7 +80,6 @@ void MainWin::init() { showCoreConnectionDlg(true); // autoconnect if appropriate //ui.actionConnectCore->activate(QAction::Trigger); - serverListDlg = new ServerListDlg(this); if(serverListDlg->showOnStartup()) { showServerList(); }