Commit c59aa135 authored by Rolf Eike Beer's avatar Rolf Eike Beer Committed by Rolf Eike Beer

show proper trust value for disabled keys in key list

BUG:381493
FIXED-IN:17.04.3
parent 55e53874
/* Copyright 2008,2009,2010,2011,2012,2013,2016 Rolf Eike Beer <kde@opensource.sf-tec.de>
/* Copyright 2008,2009,2010,2011,2012,2013,2016,2017 Rolf Eike Beer <kde@opensource.sf-tec.de>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
......@@ -150,6 +150,15 @@ KGpgItemModel::data(const QModelIndex &index, int role) const
case KEYCOLUMN_TRUST:
{
KgpgKeyTrust t = node->getTrust();
switch(node->getType()) {
case ITYPE_PAIR:
case ITYPE_PUBLIC:
if(!node->toKeyNode()->getKey()->valid())
t = TRUST_DISABLED;
break;
default:
break;
}
switch (role) {
case Qt::BackgroundColorRole:
......
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