_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 &)));
return;
for(int i = topLeft.row(); i <= bottomRight.row(); i++) {
- QModelIndex networkIdx = topLeft.sibling(topLeft.row(), 0);
+ QModelIndex networkIdx = topLeft.sibling(i, 0);
if(model()->rowCount(networkIdx) == 0)
continue;
void BufferView::contextMenuEvent(QContextMenuEvent *event) {
QModelIndex index = indexAt(event->pos());
+ if(!index.isValid())
+ index = rootIndex();
if(!index.isValid())
return;