projects
/
quassel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
12db1c2
)
hand QUrl a UTF-8 string instead of ASCII
author
Daniel Albers
<daniel@lbers.com>
Wed, 26 Nov 2008 21:36:38 +0000
(22:36 +0100)
committer
Manuel Nickschas
<sputnick@quassel-irc.org>
Wed, 26 Nov 2008 21:40:38 +0000
(22:40 +0100)
src/qtui/chatitem.cpp
patch
|
blob
|
history
diff --git
a/src/qtui/chatitem.cpp
b/src/qtui/chatitem.cpp
index
433d8d6
..
e3e9ad7
100644
(file)
--- a/
src/qtui/chatitem.cpp
+++ b/
src/qtui/chatitem.cpp
@@
-507,7
+507,7
@@
void ContentsChatItem::handleClick(const QPointF &pos, ChatScene::ClickMode clic
case Clickable::Url:
if(!str.contains("://"))
str = "http://" + str;
-
QDesktopServices::openUrl(QUrl::fromEncoded(str.toAscii()
));
+
QDesktopServices::openUrl(QUrl::fromEncoded(str.toUtf8(), QUrl::TolerantMode
));
break;
case Clickable::Channel:
// TODO join or whatever...