X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=gui%2Fbufferview.cpp;h=017ce2598f48af865cfa6cb165418f326eb6ca9a;hb=26586e615ffe42bb2b1b307ed1324a6e3051f5da;hp=03ab7580b3bd442b3424685ed6b1805b3ceeb295;hpb=a19a2f6e05b831aac9e85d21fbfc424aabb7a04e;p=quassel.git diff --git a/gui/bufferview.cpp b/gui/bufferview.cpp index 03ab7580..017ce259 100644 --- a/gui/bufferview.cpp +++ b/gui/bufferview.cpp @@ -75,6 +75,8 @@ bool BufferViewFilter::filterAcceptsRow(int source_row, const QModelIndex &sourc /***************************************** * The TreeView showing the Buffers *****************************************/ +// Please be carefull when reimplementing methods which are used to inform the view about changes to the data +// to be on the safe side: call QTreeView's method aswell BufferView::BufferView(QWidget *parent) : QTreeView(parent) { } @@ -108,5 +110,6 @@ void BufferView::dragEnterEvent(QDragEnterEvent *event) { } void BufferView::rowsInserted(const QModelIndex & parent, int start, int end) { - if(parent.parent() == QModelIndex()) setExpanded(parent, true); + if(parent.parent() == QModelIndex()) setExpanded(parent, true); qDebug() << "expanded"; + QTreeView::rowsInserted(parent, start, end); }