summaryrefslogtreecommitdiffstats
path: root/src/renderer.cpp
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2019-01-12 15:46:13 +0100
committerSlávek Banko <[email protected]>2019-01-12 15:46:13 +0100
commit374417024147717d195e1830bb72d057995b0aa8 (patch)
treec8414c8f382fe353ea3ac46d2671fa09ae29665b /src/renderer.cpp
parentc582b3bf38f9d95e8af05b28a3d653e96ead5dea (diff)
downloadtdeio-sword-374417024147717d195e1830bb72d057995b0aa8.tar.gz
tdeio-sword-374417024147717d195e1830bb72d057995b0aa8.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 <[email protected]>
Diffstat (limited to 'src/renderer.cpp')
-rw-r--r--src/renderer.cpp4
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;