X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fsubwindows%2Fdecoder_selector%2Fmodel.cpp;h=2a4182b05840462e2c8a38f9285a26af19f792a9;hp=ebdfd9d7d387635c442be8cabedaa6cebc5016e3;hb=6d46525fb5566856d01deac5a7787699b17cc4e4;hpb=be0f59038035f7a560082feba35524d418a9153a diff --git a/pv/subwindows/decoder_selector/model.cpp b/pv/subwindows/decoder_selector/model.cpp index ebdfd9d7..2a4182b0 100644 --- a/pv/subwindows/decoder_selector/model.cpp +++ b/pv/subwindows/decoder_selector/model.cpp @@ -142,7 +142,7 @@ Qt::ItemFlags DecoderCollectionModel::flags(const QModelIndex& index) const QVariant DecoderCollectionModel::headerData(int section, Qt::Orientation orientation, int role) const { - if (orientation == Qt::Horizontal && role == Qt::DisplayRole) + if ((orientation == Qt::Horizontal) && (role == Qt::DisplayRole)) return root_->data(section); return QVariant();