[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdelibs/kdeui/itemviews
From: Stephen Kelly <steveire () gmail ! com>
Date: 2010-11-01 12:57:22
Message-ID: 20101101125722.90C35AC89B () svn ! kde ! org
[Download RAW message or body]
SVN commit 1191918 by skelly:
Simplify conditional.
M +1 -1 kidentityproxymodel.cpp
--- trunk/KDE/kdelibs/kdeui/itemviews/kidentityproxymodel.cpp #1191917:1191918
@@ -170,7 +170,7 @@
if (!sourceModel())
return QModelIndex();
Q_ASSERT(parent.isValid() ? parent.model() == this : true);
- if (row < 0 || column < 0 || !hasIndex(row, column, parent))
+ if (!hasIndex(row, column, parent))
return QModelIndex();
const QModelIndex sourceParent = mapToSource(parent);
const QModelIndex sourceIndex = sourceModel()->index(row, column, sourceParent);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic