Commit 4021ed78 authored by Alexander Lohnau's avatar Alexander Lohnau 💬
Browse files

Minor simplification of is statement

GIT_SILENT
parent 286ca41b
......@@ -359,10 +359,7 @@ QVariant ItemsModel::data(const QModelIndex &index, int role) const
bool ItemsModel::canFetchMore(const QModelIndex &parent) const
{
if (!parent.isValid() && d->coreEngine && d->coreEngine->categoriesMetadata().count() > 0) {
return true;
}
return false;
return !parent.isValid() && d->coreEngine && d->coreEngine->categoriesMetadata().count() > 0;
}
void ItemsModel::fetchMore(const QModelIndex &parent)
......
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