summaryrefslogtreecommitdiffstats
path: root/sigtools/PluginTreeModel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sigtools/PluginTreeModel.cpp')
-rw-r--r--sigtools/PluginTreeModel.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/sigtools/PluginTreeModel.cpp b/sigtools/PluginTreeModel.cpp
index 4b71cc29..0519f85e 100644
--- a/sigtools/PluginTreeModel.cpp
+++ b/sigtools/PluginTreeModel.cpp
@@ -75,9 +75,7 @@ void PluginTreeModel::setTypes(const QStringList& types)
QModelIndex PluginTreeModel::index(const int row, const int column, const QModelIndex& parent) const
{
- Q_UNUSED(parent)
- Q_UNUSED(column)
- if ((row <= -1) || (m_entries.size() <= row))
+ if (parent.isValid() || column || (row <= -1) || (m_entries.size() <= row))
return QModelIndex();
return createIndex(row, 0, (void*)&m_entries[row]);
}