From 69f7af58788db344a1965252d46489858c2b60ed Mon Sep 17 00:00:00 2001 From: Marcus Eggenberger Date: Fri, 4 Jul 2008 16:50:39 +0200 Subject: [PATCH] Contextmenu requests in the open field of a bufferview shows now the networks contextmenu if the view is restricted to one network --- src/qtui/channellistdlg.cpp | 1 + src/uisupport/bufferview.cpp | 4 ++++ 2 files changed, 5 insertions(+) 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; -- 2.20.1