Changeset View
Changeset View
Standalone View
Standalone View
src/grantleethememanager.cpp
Show First 20 Lines • Show All 137 Lines • ▼ Show 20 Line(s) | 136 | if (alreadyLoadedThemeName.contains(themeName)) { | |||
---|---|---|---|---|---|
138 | const QString originalName(theme.name()); | 138 | const QString originalName(theme.name()); | ||
139 | while (alreadyLoadedThemeName.contains(themeName)) { | 139 | while (alreadyLoadedThemeName.contains(themeName)) { | ||
140 | themeName = originalName + QStringLiteral(" (%1)").arg(i); | 140 | themeName = originalName + QStringLiteral(" (%1)").arg(i); | ||
141 | ++i; | 141 | ++i; | ||
142 | } | 142 | } | ||
143 | theme.d->name = themeName; | 143 | theme.d->name = themeName; | ||
144 | } | 144 | } | ||
145 | alreadyLoadedThemeName << themeName; | 145 | alreadyLoadedThemeName << themeName; | ||
146 | auto it = themes.find(dirName); | ||||
147 | if (it != themes.end()) { | ||||
dvratil: Coding style: braces | |||||
148 | (*it).addThemePath(dirIt.filePath()); | ||||
149 | } else { | ||||
146 | themes.insert(dirName, theme); | 150 | themes.insert(dirName, theme); | ||
147 | //qDebug()<<" theme.name()"<<theme.name(); | 151 | } | ||
148 | } | 152 | } | ||
149 | } | 153 | } | ||
150 | watch->addDir(directory); | 154 | watch->addDir(directory); | ||
151 | } | 155 | } | ||
152 | 156 | | |||
153 | Q_EMIT q->themesChanged(); | 157 | Q_EMIT q->themesChanged(); | ||
154 | watch->startScan(); | 158 | watch->startScan(); | ||
155 | } | 159 | } | ||
▲ Show 20 Lines • Show All 237 Lines • Show Last 20 Lines |
Coding style: braces