Skip to content
Permalink
Browse files

Fix broken range check in UserListModel::data

Thanks to 9x6 for this fix.

Fixes #1786
  • Loading branch information...
hacst committed Aug 18, 2015
1 parent 3e31d6e commit 81698118f554615cdd4d9a3db4c4f3d73f74abaa
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/mumble/UserListModel.cpp
@@ -94,7 +94,7 @@ QVariant UserListModel::data(const QModelIndex &index, int role) const {
if (!index.isValid())
return QVariant();

if (index.row() < 0 && index.row() >= m_userList.size())
if (index.row() < 0 || index.row() >= m_userList.size())
return QVariant();

if (index.column() >= columnCount())

0 comments on commit 8169811

Please sign in to comment.
You can’t perform that action at this time.