Commit 3d506f00 authored by David Edmundson's avatar David Edmundson

dont' crash if we don't have a launcherTasksModel

If we don't have a launcher tasks model it's obvious no item can match
an item in the launcher tasks model.
parent 8106234b
......@@ -921,6 +921,9 @@ QVariant TasksModel::data(const QModelIndex &proxyIndex, int role) const
if (proxyIndex.data(AbstractTasksModel::IsLauncher).toBool()) {
return true;
} else {
if (!d->launcherTasksModel) {
return false;
}
for (int i = 0; i < d->launcherTasksModel->rowCount(); ++i) {
const QModelIndex &launcherIndex = d->launcherTasksModel->index(i, 0);
......
Markdown is supported
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