From 0100c86887764547a705db5c311bcb5d6939423d Mon Sep 17 00:00:00 2001 From: Tannin Date: Sun, 19 Jun 2016 15:58:37 +0200 Subject: download list and data tree now also maintain their layout between sessions --- src/genericicondelegate.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/genericicondelegate.cpp') diff --git a/src/genericicondelegate.cpp b/src/genericicondelegate.cpp index 3711b428..1e00f0e9 100644 --- a/src/genericicondelegate.cpp +++ b/src/genericicondelegate.cpp @@ -24,7 +24,7 @@ QList GenericIconDelegate::getIcons(const QModelIndex &index) const { QList result; if (index.isValid()) { - foreach (const QVariant &var, index.data(m_Role).toList()) { + for (const QVariant &var : index.data(m_Role).toList()) { if (!m_Compact || !var.toString().isEmpty()) { result.append(var.toString()); } -- cgit v1.3.1