Skip to content

Commit

Permalink
Merge pull request #142 from TheOneRing/Fix-build-with-Qt-5.5
Browse files Browse the repository at this point in the history
Fix build with Qt-5.5
  • Loading branch information
Sput42 committed Jul 30, 2015
2 parents 6c1008c + 0784773 commit 1731132
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/client/treemodel.cpp
Expand Up @@ -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));
Expand Down Expand Up @@ -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();
Expand Down
1 change: 1 addition & 0 deletions src/common/peer.h
Expand Up @@ -22,6 +22,7 @@
#define PEER_H

#include <QAbstractSocket>
#include <QDataStream>
#include <QPointer>

#include "authhandler.h"
Expand Down

0 comments on commit 1731132

Please sign in to comment.