mirror of
https://github.com/jankae/LibreVNA.git
synced 2026-04-06 06:53:37 +00:00
Fix warning and valgrind issues
This commit is contained in:
parent
1a779531ea
commit
d08388f903
12 changed files with 53 additions and 18 deletions
|
|
@ -113,12 +113,11 @@ QVariant JSONModel::data(const QModelIndex &index, int role) const
|
|||
case 0:
|
||||
return info.name;
|
||||
case 1:
|
||||
if(item->is_object() || item->is_array()) {
|
||||
return QVariant();
|
||||
} else {
|
||||
if(!item->is_object() && !item->is_array()) {
|
||||
return info.data;
|
||||
}
|
||||
}
|
||||
return QVariant();
|
||||
case Qt::CheckStateRole: {
|
||||
if(index.column() == 0) {
|
||||
return info.enabled ? Qt::Checked : Qt::Unchecked;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue