Remove unnecessary switch statement
Signed-off-by: PandaNinjas <admin@malwarefight.wip.la>
DCO Remediation Commit for PandaNinjas <admin@malwarefight.wip.la>
I, PandaNinjas <admin@malwarefight.wip.la>, hereby add my Signed-off-by to this commit: 318d11481d
Signed-off-by: PandaNinjas <admin@malwarefight.wip.la>
This commit is contained in:
parent
318d11481d
commit
534328f16d
@ -45,11 +45,11 @@ QVariant Index::data(const QModelIndex &index, int role) const
|
|||||||
switch (role)
|
switch (role)
|
||||||
{
|
{
|
||||||
case Qt::DisplayRole:
|
case Qt::DisplayRole:
|
||||||
switch (index.column())
|
if (list.column() == 0) {
|
||||||
{
|
return list->humanReadable();
|
||||||
case 0: return list->humanReadable();
|
} else {
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
break;
|
|
||||||
case UidRole: return list->uid();
|
case UidRole: return list->uid();
|
||||||
case NameRole: return list->name();
|
case NameRole: return list->name();
|
||||||
case ListPtrRole: return QVariant::fromValue(list);
|
case ListPtrRole: return QVariant::fromValue(list);
|
||||||
|
Loading…
Reference in New Issue
Block a user