X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fuisupport%2Fbufferview.cpp;h=d83f696a7efef555e6d4fa8083fc6a5f58cc38e1;hp=3043b83c944876839d9da01cb6c2274c9c64dc10;hb=923ab935b9e2936d2512ef9344811e9bb2f436f3;hpb=47f8eca0275b02a19a36f098faaea0a3bf25460c diff --git a/src/uisupport/bufferview.cpp b/src/uisupport/bufferview.cpp index 3043b83c..d83f696a 100644 --- a/src/uisupport/bufferview.cpp +++ b/src/uisupport/bufferview.cpp @@ -136,9 +136,8 @@ void BufferView::dataChanged(const QModelIndex &topLeft, const QModelIndex &bott continue; bool isActive = networkIdx.data(NetworkModel::ItemActiveRole).toBool(); - if(isExpanded(networkIdx) != isActive) { + if(isExpanded(networkIdx) != isActive) setExpanded(networkIdx, isActive); - } } } @@ -276,7 +275,10 @@ void BufferView::wheelEvent(QWheelEvent* event) QSize BufferView::sizeHint() const { if(!model()) return QTreeView::sizeHint(); - + + if(model()->rowCount() == 0) + return QSize(120, 50); + int columnSize = 0; for(int i = 0; i < model()->columnCount(); i++) { if(!isColumnHidden(i))