chore:fixed some codeql warnings
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
parent
9a57fddaaf
commit
f7fd6f566f
36 changed files with 176 additions and 217 deletions
|
@ -517,13 +517,9 @@ QVariant PackProfile::data(const QModelIndex& index, int role) const
|
|||
|
||||
switch (role) {
|
||||
case Qt::CheckStateRole: {
|
||||
switch (column) {
|
||||
case NameColumn: {
|
||||
return patch->isEnabled() ? Qt::Checked : Qt::Unchecked;
|
||||
}
|
||||
default:
|
||||
return QVariant();
|
||||
}
|
||||
if (column == NameColumn)
|
||||
return patch->isEnabled() ? Qt::Checked : Qt::Unchecked;
|
||||
return QVariant();
|
||||
}
|
||||
case Qt::DisplayRole: {
|
||||
switch (column) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue