Contextmenu requests in the open field of a bufferview shows now the networks context...
authorMarcus Eggenberger <egs@quassel-irc.org>
Fri, 4 Jul 2008 14:50:39 +0000 (16:50 +0200)
committerMarcus Eggenberger <egs@quassel-irc.org>
Fri, 4 Jul 2008 14:50:39 +0000 (16:50 +0200)
src/qtui/channellistdlg.cpp
src/uisupport/bufferview.cpp

index c232a05..4165c81 100644 (file)
@@ -66,6 +66,7 @@ void ChannelListDlg::setNetwork(NetworkId netId) {
   
   _netId = netId;
   _ircListModel.setChannelList();
+  showFilterLine(false);
 }
 
 void ChannelListDlg::requestSearch() {
index d2893a8..62060db 100644 (file)
@@ -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;