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

Use QLatin1Char('/') here

parent 22b8b05c
...@@ -55,7 +55,7 @@ void KNotePrintSelectThemeComboBox::loadThemes() ...@@ -55,7 +55,7 @@ void KNotePrintSelectThemeComboBox::loadThemes()
QStringList alreadyLoadedThemeName; QStringList alreadyLoadedThemeName;
while (dirIt.hasNext()) { while (dirIt.hasNext()) {
dirIt.next(); dirIt.next();
const QString themeInfoFile = dirIt.filePath() + QDir::separator() + QLatin1String("theme.desktop"); const QString themeInfoFile = dirIt.filePath() + QLatin1String("/theme.desktop");
KConfig config(themeInfoFile); KConfig config(themeInfoFile);
KConfigGroup group(&config, QStringLiteral("Desktop Entry")); KConfigGroup group(&config, QStringLiteral("Desktop Entry"));
QString name = group.readEntry("Name", QString()); QString name = group.readEntry("Name", QString());
...@@ -70,7 +70,7 @@ void KNotePrintSelectThemeComboBox::loadThemes() ...@@ -70,7 +70,7 @@ void KNotePrintSelectThemeComboBox::loadThemes()
++i; ++i;
} }
} }
const QString printThemePath(dirIt.filePath() + QDir::separator()); const QString printThemePath(dirIt.filePath() + QLatin1Char('/'));
if (!printThemePath.isEmpty()) { if (!printThemePath.isEmpty()) {
alreadyLoadedThemeName << name; alreadyLoadedThemeName << name;
addItem(name, printThemePath); 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