X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fuisupport%2Fuistyle.cpp;h=b74e1b7c516d2335b21c1d1d74e650bcb68206f7;hb=00a296c637fffad2a00b2ae6a4524b6f42a2f46e;hp=281ec76c15003984429d41ce8a8f1c348b99b249;hpb=02ed3d0a95051e55ecaf66561f379041ae111cca;p=quassel.git diff --git a/src/uisupport/uistyle.cpp b/src/uisupport/uistyle.cpp index 281ec76c..b74e1b7c 100644 --- a/src/uisupport/uistyle.cpp +++ b/src/uisupport/uistyle.cpp @@ -92,7 +92,7 @@ void UiStyle::loadStyleSheet() { UiStyleSettings s; QString styleSheet; - styleSheet += loadStyleSheet("file:///" + Quassel::findDataFilePath("default.qss")); + styleSheet += loadStyleSheet("file:///" + Quassel::findDataFilePath("stylesheets/default.qss")); styleSheet += loadStyleSheet("file:///" + Quassel::configDirPath() + "settings.qss"); if(s.value("UseCustomStyleSheet", false).toBool()) styleSheet += loadStyleSheet("file:///" + s.value("CustomStyleSheetPath").toString(), true); @@ -552,6 +552,7 @@ void UiStyle::StyledMessage::style() const { QString txt = UiStyle::mircToInternal(contents()); QString bufferName = bufferInfo().bufferName(); bufferName.replace('%', "%%"); // well, you _can_ have a % in a buffername apparently... -_- + host.replace('%', "%%"); // hostnames too... const int maxNetsplitNicks = 15; QString t; @@ -616,7 +617,7 @@ void UiStyle::StyledMessage::style() const { //: Topic Message t = tr("%1").arg(txt); break; case Message::NetsplitJoin: { - QStringList users = txt.split(":"); + QStringList users = txt.split("#:#"); QStringList servers = users.takeLast().split(" "); for(int i = 0; i < users.count() && i < maxNetsplitNicks; i++) @@ -630,7 +631,7 @@ void UiStyle::StyledMessage::style() const { } break; case Message::NetsplitQuit: { - QStringList users = txt.split(":"); + QStringList users = txt.split("#:#"); QStringList servers = users.takeLast().split(" "); for(int i = 0; i < users.count() && i < maxNetsplitNicks; i++)