Commit fb282277 authored by Dmitry Kazakov's avatar Dmitry Kazakov

Fix DockerStylesComboModel::data to return correct value

Caught by a GCC warning on KDE CI
parent 95da7a60
......@@ -66,9 +66,7 @@ QVariant DockerStylesComboModel::data(const QModelIndex &index, int role) const
switch (role) {
case AbstractStylesModel::isTitleRole: {
if (index.internalId() == (quintptr)UsedStyleId || index.internalId() == (quintptr)UnusedStyleId) {
return true;
}
return (index.internalId() == (quintptr)UsedStyleId || index.internalId() == (quintptr)UnusedStyleId);
}
case Qt::DisplayRole: {
if (index.internalId() == (quintptr)UsedStyleId) {
......
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