Fixing dubious crash at core connect (courtesy of EgS finding and Sput testing the...
authorAlexander von Renteln <phon@quassel-irc.org>
Mon, 14 Jan 2008 15:20:59 +0000 (15:20 +0000)
committerAlexander von Renteln <phon@quassel-irc.org>
Mon, 14 Jan 2008 15:20:59 +0000 (15:20 +0000)
crappy ubuntu machine while phon himself is slacking off on some "meeting"... ;-))

src/client/networkmodel.cpp
src/client/treemodel.cpp

index 5a75695..45204fa 100644 (file)
@@ -240,7 +240,7 @@ void NetworkItem::attachNetwork(Network *network) {
          this, SLOT(attachIrcChannel(QString)));
   // FIXME: connect this and that...
 
-  //emit dataChanged();
+  emit dataChanged();
 }
 
 void NetworkItem::attachIrcChannel(const QString &channelName) {
index 2a2ed85..18f7c4f 100644 (file)
@@ -387,7 +387,7 @@ void TreeModel::itemDataChanged(int column) {
 
   if(column == -1) {
     leftIndex = createIndex(item->row(), 0, item);
-    rightIndex = createIndex(item->row(), item->columnCount(), item);
+    rightIndex = createIndex(item->row(), item->columnCount()-1, item);
   } else {
     leftIndex = createIndex(item->row(), column, item);
     rightIndex = leftIndex;