This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

fixed appearance icons display + huge filesystem access optimization …

…in this area
  • Loading branch information...
pvanek committed Mar 26, 2013
1 parent b228a6b commit b929d7e64cd068e922bf5f3e03b3d513cc8d98f4
@@ -80,7 +80,7 @@ void IconThemeConfig::initIconsThemes()
item->setIcon(2, theme.icon("edit-undo"));
item->setIcon(3, theme.icon("media-playback-start"));
- item->setText(4, theme.comment().isEmpty() ? theme.text() : theme.text() + " ( " + theme.comment() + " )");
+ item->setText(4, theme.comment().isEmpty() ? theme.text() : theme.text() + " (" + theme.comment() + ")");
}
}
}
@@ -63,17 +63,17 @@ void IconThemeInfo::load(const QString &fileName)
void IconThemeInfo::loadDirsInfo(QSettings &file, const QString &path)
{
- if (file.value("Size", 0).toInt() == PRIVIEW_ICON_SIZE &&
- file.value("Context").toString() == "Actions"
- )
+ foreach (QString i, file.value("Icon Theme/Directories", QStringList()).toStringList())
{
- mActionsDir = path;
- }
-
- foreach (QString group, file.childGroups())
- {
- file.beginGroup(group);
- loadDirsInfo(file, path + QDir::separator() + group);
+ file.beginGroup(i);
+ if (file.value("Size", 0).toInt() == PRIVIEW_ICON_SIZE &&
+ file.value("Context").toString() == "Actions"
+ )
+ {
+ mActionsDir = path + QDir::separator() + i;
+ file.endGroup();
+ return;
+ }
file.endGroup();
}
}

0 comments on commit b929d7e

Please sign in to comment.