From: Marcus Eggenberger Date: Fri, 4 Jul 2008 14:50:39 +0000 (+0200) Subject: Contextmenu requests in the open field of a bufferview shows now the networks context... X-Git-Tag: 0.3.0~313 X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=commitdiff_plain;h=69f7af58788db344a1965252d46489858c2b60ed Contextmenu requests in the open field of a bufferview shows now the networks contextmenu if the view is restricted to one network --- diff --git a/src/qtui/channellistdlg.cpp b/src/qtui/channellistdlg.cpp index c232a05e..4165c818 100644 --- a/src/qtui/channellistdlg.cpp +++ b/src/qtui/channellistdlg.cpp @@ -66,6 +66,7 @@ void ChannelListDlg::setNetwork(NetworkId netId) { _netId = netId; _ircListModel.setChannelList(); + showFilterLine(false); } void ChannelListDlg::requestSearch() { diff --git a/src/uisupport/bufferview.cpp b/src/uisupport/bufferview.cpp index d2893a8f..62060dbb 100644 --- a/src/uisupport/bufferview.cpp +++ b/src/uisupport/bufferview.cpp @@ -79,6 +79,8 @@ BufferView::BufferView(QWidget *parent) _hideQuitAction.setEnabled(false); _hideModeAction.setEnabled(false); + showChannelList.setIcon(QIcon(":/16x16/actions/oxygen/16x16/actions/format-list-unordered.png")); + connect(this, SIGNAL(collapsed(const QModelIndex &)), this, SLOT(on_collapse(const QModelIndex &))); connect(this, SIGNAL(expanded(const QModelIndex &)), this, SLOT(on_expand(const QModelIndex &))); @@ -401,6 +403,8 @@ QMenu *BufferView::createHideEventsSubMenu(QMenu &menu) { void BufferView::contextMenuEvent(QContextMenuEvent *event) { QModelIndex index = indexAt(event->pos()); + if(!index.isValid()) + index = rootIndex(); if(!index.isValid()) return;