Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 340a21a3 authored by Laurent Montel's avatar Laurent Montel 😁 Committed by Pali Rohár

Add missing separator

parent de235362
......@@ -76,7 +76,7 @@ ChatWindowStyle::ChatWindowStyle(const QString &styleName, const QString &varian
void ChatWindowStyle::init(const QString &styleName, StyleBuildMode styleBuildMode)
{
QStringList styleDirs = QStandardPaths::locateAll(QStandardPaths::DataLocation, QStringLiteral("styles/%1/Contents/Resources/").arg(styleName));
QStringList styleDirs = QStandardPaths::locateAll(QStandardPaths::DataLocation, QStringLiteral("/styles/%1/Contents/Resources/").arg(styleName));
if (styleDirs.isEmpty()) {
kDebug(14000) << "Failed to find style" << styleName;
return;
......
......@@ -330,16 +330,16 @@ bool WebPresencePlugin::transform(KTemporaryFile *src, KTemporaryFile *dest)
return false;
case WEB_HTML:
if (WebPresenceConfig::self()->useImagesHTML()) {
sheet.setFileName(QStandardPaths::locate(QStandardPaths::DataLocation, QStringLiteral("webpresence/webpresence_html_images.xsl")));
sheet.setFileName(QStandardPaths::locate(QStandardPaths::DataLocation, QStringLiteral("/webpresence/webpresence_html_images.xsl")));
} else {
sheet.setFileName(QStandardPaths::locate(QStandardPaths::DataLocation, QStringLiteral("webpresence/webpresence_html.xsl")));
sheet.setFileName(QStandardPaths::locate(QStandardPaths::DataLocation, QStringLiteral("/webpresence/webpresence_html.xsl")));
}
break;
case WEB_XHTML:
if (WebPresenceConfig::self()->useImagesHTML()) {
sheet.setFileName(QStandardPaths::locate(QStandardPaths::DataLocation, QStringLiteral("webpresence/webpresence_xhtml_images.xsl")));
sheet.setFileName(QStandardPaths::locate(QStandardPaths::DataLocation, QStringLiteral("/webpresence/webpresence_xhtml_images.xsl")));
} else {
sheet.setFileName(QStandardPaths::locate(QStandardPaths::DataLocation, QStringLiteral("webpresence/webpresence_xhtml.xsl")));
sheet.setFileName(QStandardPaths::locate(QStandardPaths::DataLocation, QStringLiteral("/webpresence/webpresence_xhtml.xsl")));
}
break;
case WEB_CUSTOM:
......
......@@ -440,7 +440,7 @@ void QQContact::setDisplayPicture(KTemporaryFile *f)
//copy the temp file somewere else.
// in a better world, the file could be dirrectly wrote at the correct location.
// but the custom emoticon code is to deeply merged in the display picture code while it could be separated.
QString newlocation=QStandardPaths::writableLocation(QStandardPaths::DataLocation) + QLatin1Char('/') + "qqpictures/"+ contactId().toLower().replace(QRegExp("[./~]"),QStringLiteral("-")) +".png" ;
QString newlocation=QStandardPaths::writableLocation(QStandardPaths::DataLocation) + QLatin1Char('/') + "/qqpictures/"+ contactId().toLower().replace(QRegExp("[./~]"),QStringLiteral("-")) +".png" ;
QString fileName = f->fileName();
f->setAutoRemove(false);
......@@ -454,7 +454,7 @@ void QQContact::setDisplayPicture(KTemporaryFile *f)
void QQContact::slotEmitDisplayPictureChanged()
{
QString newlocation=QStandardPaths::writableLocation(QStandardPaths::DataLocation) + QLatin1Char('/') + "qqpictures/"+ contactId().toLower().replace(QRegExp("[./~]"),QStringLiteral("-")) +".png" ;
QString newlocation=QStandardPaths::writableLocation(QStandardPaths::DataLocation) + QLatin1Char('/') + "/qqpictures/"+ contactId().toLower().replace(QRegExp("[./~]"),QStringLiteral("-")) +".png" ;
setProperty( Kopete::Global::Properties::self()->photo() , newlocation );
emit displayPictureChanged();
}
......
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