X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fclient%2Ftreemodel.cpp;h=fd47bc04991e8ef86d8bdbd32bf19551a849df67;hb=078477395aaec1edee90922037ebc8a36b072d90;hp=33601995d117883b70ac32987e367ee734c3c000;hpb=84cd3561e97167ffb98ecab0fd2b884ba1d13ada;p=quassel.git diff --git a/src/client/treemodel.cpp b/src/client/treemodel.cpp index 33601995..fd47bc04 100644 --- a/src/client/treemodel.cpp +++ b/src/client/treemodel.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2014 by the Quassel Project * + * Copyright (C) 2005-2015 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -556,10 +556,9 @@ void TreeModel::endAppendChilds() ChildStatus cs = _childStatus; #ifndef QT_NO_DEBUG QModelIndex parent = indexByItem(parentItem); -#endif Q_ASSERT(cs.parent == parent); Q_ASSERT(rowCount(parent) == cs.childCount + cs.end - cs.start + 1); - +#endif _aboutToRemoveOrInsert = false; for (int i = cs.start; i <= cs.end; i++) { connectItem(parentItem->child(i)); @@ -605,9 +604,9 @@ void TreeModel::endRemoveChilds() #ifndef QT_NO_DEBUG ChildStatus cs = _childStatus; QModelIndex parent = indexByItem(parentItem); -#endif Q_ASSERT(cs.parent == parent); Q_ASSERT(rowCount(parent) == cs.childCount - cs.end + cs.start - 1); +#endif _aboutToRemoveOrInsert = false; endRemoveRows();