Commit 1790e7fb authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use QLatin1Char('/') here

parent 22b8b05c
......@@ -55,7 +55,7 @@ void KNotePrintSelectThemeComboBox::loadThemes()
QStringList alreadyLoadedThemeName;
while (dirIt.hasNext()) {
dirIt.next();
const QString themeInfoFile = dirIt.filePath() + QDir::separator() + QLatin1String("theme.desktop");
const QString themeInfoFile = dirIt.filePath() + QLatin1String("/theme.desktop");
KConfig config(themeInfoFile);
KConfigGroup group(&config, QStringLiteral("Desktop Entry"));
QString name = group.readEntry("Name", QString());
......@@ -70,7 +70,7 @@ void KNotePrintSelectThemeComboBox::loadThemes()
++i;
}
}
const QString printThemePath(dirIt.filePath() + QDir::separator());
const QString printThemePath(dirIt.filePath() + QLatin1Char('/'));
if (!printThemePath.isEmpty()) {
alreadyLoadedThemeName << name;
addItem(name, printThemePath);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment