diff --git a/src/insertproxymodel.cpp b/src/insertproxymodel.cpp index 486b8b4..a6c4b38 100644 --- a/src/insertproxymodel.cpp +++ b/src/insertproxymodel.cpp @@ -769,8 +769,6 @@ void InsertProxyModel::sort(int column, Qt::SortOrder order) { if (!sourceModel()) return; - if (column < 0 || column >= sourceModel()->columnCount()) - return; sourceModel()->sort(column, order); }