1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

fix issue #1161 round 2!

Fight!
This commit is contained in:
krepa098 2015-02-16 15:28:57 +01:00
parent e454671ebd
commit c631fff602

View File

@ -38,7 +38,7 @@ QVariant CustomTextDocument::loadResource(int type, const QUrl &name)
if (type == QTextDocument::ImageResource && name.scheme() == "key")
{
QSize size = QSize(Settings::getInstance().getEmojiFontPointSize(),Settings::getInstance().getEmojiFontPointSize());
QString fileName = name.toString().mid(4);
QString fileName = QUrl::fromPercentEncoding(name.toEncoded()).mid(4).toHtmlEscaped();
return SmileyPack::getInstance().getAsIcon(fileName).pixmap(size);
}