connect(Client::messageModel(), SIGNAL(rowsInserted(const QModelIndex &, int, int)),
SLOT(messagesInserted(const QModelIndex &, int, int)));
connect(GraphicalUi::contextMenuActionProvider(),
- SIGNAL(showChannelList(NetworkId, const QString &)),
- SLOT(showChannelList(NetworkId, const QString &)));
+ SIGNAL(showChannelList(NetworkId,QString,bool)),
+ SLOT(showChannelList(NetworkId,QString,bool)));
connect(Client::instance(),
- SIGNAL(showChannelList(NetworkId, const QString &)),
- SLOT(showChannelList(NetworkId, const QString &)));
+ SIGNAL(showChannelList(NetworkId,QString,bool)),
+ SLOT(showChannelList(NetworkId,QString,bool)));
connect(GraphicalUi::contextMenuActionProvider(), SIGNAL(showNetworkConfig(NetworkId)), SLOT(showNetworkConfig(NetworkId)));
connect(GraphicalUi::contextMenuActionProvider(), SIGNAL(showIgnoreList(QString)), SLOT(showIgnoreList(QString)));
connect(Client::instance(), SIGNAL(showIgnoreList(QString)), SLOT(showIgnoreList(QString)));
}
-void MainWin::showChannelList(NetworkId netId, const QString &channelFilters)
+void MainWin::showChannelList(NetworkId netId, const QString &channelFilters, bool listImmediately)
{
ChannelListDlg *channelListDlg = new ChannelListDlg();
if (!channelFilters.isEmpty()) {
channelListDlg->setChannelFilters(channelFilters);
}
+ if (listImmediately) {
+ channelListDlg->requestSearch();
+ }
channelListDlg->show();
}