Made the Nicklist Pretty again
[quassel.git] / src / client / treemodel.cpp
index e560a77..18f7c4f 100644 (file)
@@ -147,7 +147,7 @@ int AbstractTreeItem::row() const {
     return _parentItem->_childItems[column()].indexOf(const_cast<AbstractTreeItem*>(this));
 }
 
-AbstractTreeItem *AbstractTreeItem::parent() {
+AbstractTreeItem *AbstractTreeItem::parent() const {
   return _parentItem;
 }
 
@@ -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;