From: Manuel Nickschas Date: Wed, 20 Jun 2007 00:01:31 +0000 (+0000) Subject: Make selections in bufferviews (mostly) synchronous again. X-Git-Tag: 0.1.0~203 X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=commitdiff_plain;h=f0a6776fc5102ff6a7fe1469917fe231e4cd3a8a;ds=sidebyside Make selections in bufferviews (mostly) synchronous again. --- diff --git a/gui/bufferviewwidget.cpp b/gui/bufferviewwidget.cpp index 04331c38..a78754e7 100644 --- a/gui/bufferviewwidget.cpp +++ b/gui/bufferviewwidget.cpp @@ -154,7 +154,7 @@ BufferTreeModel::BufferTreeModel(QObject *parent) : QAbstractItemModel(parent) { QList rootData; rootData << "Buffer" << "Network"; rootItem = new TreeItem(rootData, 0); - + connect(this, SIGNAL(fakeUserInput(BufferId, QString)), ClientProxy::instance(), SLOT(gsUserInput(BufferId, QString))); } @@ -361,6 +361,7 @@ void BufferTreeModel::changeCurrent(const QModelIndex ¤t, const QModelInde currentBuffer = getBufferByIndex(current); bufferActivity(Buffer::NoActivity, currentBuffer); emit bufferSelected(currentBuffer); + emit updateSelection(current, QItemSelectionModel::ClearAndSelect); } } diff --git a/gui/mainwin.cpp b/gui/mainwin.cpp index 0adce3db..35441a1b 100644 --- a/gui/mainwin.cpp +++ b/gui/mainwin.cpp @@ -222,7 +222,7 @@ void MainWin::showBuffer(Buffer *b) { //emit bufferSelected(b); //qApp->processEvents(); ui.bufferWidget->setBuffer(b); - //emit bufferSelected(b); // FIXME do we need this? + //emit bufferSelected(b); } void MainWin::importBacklog() {