diff --git a/apps/opencs/model/world/idtableproxymodel.cpp b/apps/opencs/model/world/idtableproxymodel.cpp index fdfdacbf3..93c1749c6 100644 --- a/apps/opencs/model/world/idtableproxymodel.cpp +++ b/apps/opencs/model/world/idtableproxymodel.cpp @@ -51,21 +51,5 @@ void CSMWorld::IdTableProxyModel::setFilter (const boost::shared_ptrdata(left).toString()); - int leftX = cellPattern.cap(1).toInt(); - int leftY = cellPattern.cap(2).toInt(); - - int rightResult = cellPattern.indexIn(sourceModel()->data(right).toString()); - int rightX = cellPattern.cap(1).toInt(); - int rightY = cellPattern.cap(2).toInt(); - - if(leftResult != -1 && rightResult != -1) - return(leftX < rightX) || (leftX == rightX && leftY <= rightY); - else - return QSortFilterProxyModel::lessThan(left, right); + return QSortFilterProxyModel::lessThan(left, right); }