Commit 33111a9f authored by David Edmundson's avatar David Edmundson
Browse files

Suppress warning on invalid indexes

If m_uidColumn is unknown then we'll be looking up an invalid index
which is harmless but gives a warning.
parent 2863a483
......@@ -57,7 +57,7 @@ bool ProcessSortFilterModel::filterAcceptsRow(int sourceRow, const QModelIndex &
auto source = sourceModel();
if (m_viewMode != ViewAll) {
if (m_viewMode != ViewAll && m_uidColumn != -1) {
auto uid = source->data(source->index(sourceRow, m_uidColumn, sourceParent), ProcessDataModel::Value).toUInt();
switch (m_viewMode) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment