diff options
| author | Tannin <devnull@localhost> | 2014-03-18 19:18:04 +0100 |
|---|---|---|
| committer | Tannin <devnull@localhost> | 2014-03-18 19:18:04 +0100 |
| commit | c19c4820d87bdf350f0725712c0b5af908fa9580 (patch) | |
| tree | 79e633f71b65f36b9a0f232561fc891003af5276 /src/pluginflagicondelegate.cpp | |
| parent | 8ab1b479438dd929bc953e554629d1bddca61c9e (diff) | |
- force-enabled game esms no longer break keyboard-navigation in plugin list
Diffstat (limited to 'src/pluginflagicondelegate.cpp')
| -rw-r--r-- | src/pluginflagicondelegate.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/pluginflagicondelegate.cpp b/src/pluginflagicondelegate.cpp index 6c0bb29e..761555d7 100644 --- a/src/pluginflagicondelegate.cpp +++ b/src/pluginflagicondelegate.cpp @@ -11,8 +11,10 @@ PluginFlagIconDelegate::PluginFlagIconDelegate(QObject *parent) QList<QIcon> PluginFlagIconDelegate::getIcons(const QModelIndex &index) const
{
QList<QIcon> result;
- foreach (const QVariant &var, index.data(Qt::UserRole + 1).toList()) {
- result.append(var.value<QIcon>());
+ if (index.isValid()) {
+ foreach (const QVariant &var, index.data(Qt::UserRole + 1).toList()) {
+ result.append(var.value<QIcon>());
+ }
}
return result;
}
|
