X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fqtui%2Fmainwin.cpp;h=80879a24e3750a120fb7c692fb7662b0cc344eb3;hb=70955828d6ffab8c39435fe48a923d0c7dbbb678;hp=fd258838e5370b76d80f84f5fc016909fd022ea3;hpb=efe1292ee3dffb7fe2f8cee2c4c2767cd53efb34;p=quassel.git diff --git a/src/qtui/mainwin.cpp b/src/qtui/mainwin.cpp index fd258838..80879a24 100644 --- a/src/qtui/mainwin.cpp +++ b/src/qtui/mainwin.cpp @@ -207,11 +207,11 @@ void MainWin::init() 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))); @@ -1473,7 +1473,7 @@ void MainWin::showCoreConfigWizard(const QVariantList &backends, const QVariantL } -void MainWin::showChannelList(NetworkId netId, const QString &channelFilters) +void MainWin::showChannelList(NetworkId netId, const QString &channelFilters, bool listImmediately) { ChannelListDlg *channelListDlg = new ChannelListDlg(); @@ -1499,6 +1499,9 @@ void MainWin::showChannelList(NetworkId netId, const QString &channelFilters) if (!channelFilters.isEmpty()) { channelListDlg->setChannelFilters(channelFilters); } + if (listImmediately) { + channelListDlg->requestSearch(); + } channelListDlg->show(); }