From 962e71d495c5184cde7a33259ef945417334f0f0 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Thu, 29 Jan 2015 13:35:28 -0800 Subject: Make the cache cache things That fancy cache is kinda pointless if we never fill it... --- gettextfromc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gettextfromc.cpp b/gettextfromc.cpp index de2b1d486..c579e3c3c 100644 --- a/gettextfromc.cpp +++ b/gettextfromc.cpp @@ -6,7 +6,7 @@ const char *gettextFromC::trGettext(const char *text) { QByteArray &result = translationCache[QByteArray(text)]; if (result.isEmpty()) - result = trUtf8(text).toUtf8(); + result = translationCache[QByteArray(text)] = trUtf8(text).toUtf8(); return result.constData(); } -- cgit v1.2.3-70-g09d2