Make the cache cache things

That fancy cache is kinda pointless if we never fill it...
This commit is contained in:
Dirk Hohndel 2015-01-29 13:35:28 -08:00
parent 1b48b19d0b
commit 962e71d495

View file

@ -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();
}