summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPino Toscano <pino@kde.org>2013-04-16 11:57:20 +0200
committerPino Toscano <pino@kde.org>2013-04-16 11:57:20 +0200
commit42370825aca564fa8a3a21b9e3ce76f90570ffbc (patch)
tree6d02b12ed08a285a2be2b443e61182f40678762a /src
parentpass menutitle through i18n() to get it localized -.- (diff)
downloadrekonq-42370825aca564fa8a3a21b9e3ce76f90570ffbc.tar.xz
i18n: make sure text passed to i18n() is UTF-8
Diffstat (limited to 'src')
-rw-r--r--src/webwindow/rekonqfactory.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/webwindow/rekonqfactory.cpp b/src/webwindow/rekonqfactory.cpp
index 86c60b55..75fd0baa 100644
--- a/src/webwindow/rekonqfactory.cpp
+++ b/src/webwindow/rekonqfactory.cpp
@@ -322,7 +322,7 @@ void RekonqFactory::fillMenu(KMenu *m, QDomNode node)
if (el.tagName() == QL1S("text"))
{
- const QString menuTitle = i18n(qPrintable(el.text()));
+ const QString menuTitle = i18n(el.text().toUtf8().constData());
m->setTitle(menuTitle);
}