Make selections in bufferviews (mostly) synchronous again.
authorManuel Nickschas <sputnick@quassel-irc.org>
Wed, 20 Jun 2007 00:01:31 +0000 (00:01 +0000)
committerManuel Nickschas <sputnick@quassel-irc.org>
Wed, 20 Jun 2007 00:01:31 +0000 (00:01 +0000)
gui/bufferviewwidget.cpp
gui/mainwin.cpp

index 04331c3..a78754e 100644 (file)
@@ -154,7 +154,7 @@ BufferTreeModel::BufferTreeModel(QObject *parent) : QAbstractItemModel(parent) {
   QList<QVariant> 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 &current, const QModelInde
     currentBuffer = getBufferByIndex(current);
     bufferActivity(Buffer::NoActivity, currentBuffer);
     emit bufferSelected(currentBuffer);
+    emit updateSelection(current, QItemSelectionModel::ClearAndSelect);
   }
 }
 
index 0adce3d..35441a1 100644 (file)
@@ -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() {