Skip to content

Commit

Permalink
fix: use fix class name as theme file first
Browse files Browse the repository at this point in the history
Change-Id: I90a84e9c3dfee442748c00c21f76940f3f118da8
  • Loading branch information
Iceyer committed Mar 6, 2018
1 parent 611bc0c commit d2dfd67
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/widgets/dthememanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -208,16 +208,16 @@ class DThemeManagerPrivate : public DCORE_NAMESPACE::DObjectPrivate
fallbackList << overriveName;
}

QString rawClassName = getThemeNameByRawClassName(w);
if (!rawClassName.isEmpty()) {
fallbackList << rawClassName;
}

QString className = getThemeNameByClassName(w);
if (!className.isEmpty()) {
fallbackList << className;
}

QString rawClassName = getThemeNameByRawClassName(w);
if (!rawClassName.isEmpty()) {
fallbackList << rawClassName;
}

auto themeName = fallbackWidgetThemeName(w, nullptr);
for (auto filename : fallbackList) {
if (themeFileExist(themeURL(themeName, filename))) {
Expand Down

0 comments on commit d2dfd67

Please sign in to comment.