diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2019-01-12 15:46:13 +0100 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2019-01-12 17:36:42 +0100 |
commit | fed195cae2cb376b3205e176f7a61c401bf00ace (patch) | |
tree | 85a78fcd94d1dd6dd1a20a23da466bc4dd5a62ab /src/renderer.cpp | |
parent | f938ddefb96507d85e76252b1824772172ee0a19 (diff) | |
download | tdeio-sword-fed195cae2cb376b3205e176f7a61c401bf00ace.tar.gz tdeio-sword-fed195cae2cb376b3205e176f7a61c401bf00ace.zip |
Added controlled conversions to char* instead of automatic ascii conversions.
The definition of -UTQT_NO_ASCII_CAST is no longer needed.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 374417024147717d195e1830bb72d057995b0aa8)
Diffstat (limited to 'src/renderer.cpp')
-rw-r--r-- | src/renderer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/renderer.cpp b/src/renderer.cpp index 2fa180f..5a11e6a 100644 --- a/src/renderer.cpp +++ b/src/renderer.cpp @@ -150,7 +150,7 @@ namespace KioSword else setGlobalOption("Variants", "Primary Readings"); - LocaleMgr::getSystemLocaleMgr()->setDefaultLocaleName(options.locale()); + LocaleMgr::getSystemLocaleMgr()->setDefaultLocaleName(options.locale().latin1()); } /** Return an HTML hyperlinked list of all modules, @@ -481,7 +481,7 @@ namespace KioSword doindex = true; break; } - lk = vk->ParseVerseList(ref, "Genesis 1:1", true); + lk = vk->ParseVerseList(ref.utf8(), "Genesis 1:1", true); if (lk.Count() == 0) { text += "<p class=\"error\">" + i18n("Couldn't find reference '%1'.").arg(ref) + "</p>"; doindex = true; |