Commit e8257895 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Don't use nullptr as flag value

parent 94f9bbc2
......@@ -401,7 +401,7 @@ int SensorBrowserModel::rowCount ( const QModelIndex & parent ) const {
}
//virtual
Qt::ItemFlags SensorBrowserModel::flags ( const QModelIndex & index ) const {
if(!index.isValid()) return 0;
if(!index.isValid()) return Qt::NoItemFlags;
if(mSensorInfoMap.contains(index.internalId())) return Qt::ItemIsDragEnabled | Qt::ItemIsSelectable | Qt::ItemIsEnabled;
else return Qt::ItemIsEnabled;
}
......
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