summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2017-03-26 16:21:42 +0200
committerPali Roh├ír <[email protected]>2017-12-22 09:10:25 +0100
commit7b243dad7c1acb606d814e3cbcdb50f01a57f726 (patch)
treec050a39637967a2102bd4cfc34a0be7026873603
parent340a21a33cf03d5b499cd27bc62ca762ddcea9fa (diff)
Fix search files
-rw-r--r--kopete/chatwindow/kopetechatwindowstyle.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/kopete/chatwindow/kopetechatwindowstyle.cpp b/kopete/chatwindow/kopetechatwindowstyle.cpp
index 3dc6834..5aa2377 100644
--- a/kopete/chatwindow/kopetechatwindowstyle.cpp
+++ b/kopete/chatwindow/kopetechatwindowstyle.cpp
@@ -76,7 +76,9 @@ 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));
+ qDebug() <<" QStandardPaths::locateAll(QStandardPaths::DataLocation" << QStandardPaths::standardLocations(QStandardPaths::DataLocation);
+ QStringList styleDirs = QStandardPaths::locateAll(QStandardPaths::DataLocation, QStringLiteral("/styles/%1/Contents/Resources/").arg(styleName),
+ QStandardPaths::LocateDirectory);
if (styleDirs.isEmpty()) {
kDebug(14000) << "Failed to find style" << styleName;
return;