aboutsummaryrefslogtreecommitdiffstats
path: root/apps/X11
diff options
context:
space:
mode:
authordanglassey <danglassey>2002-08-28 13:02:00 +0000
committerdanglassey <danglassey>2002-08-28 13:02:00 +0000
commit1e057d67306569fcd9896dfcea1f5353810f0a48 (patch)
treefa0e30a5552e043e167d762300579cb96f113696 /apps/X11
parent6178a13bb73d000bbe49587d0ecb67ea689b043f (diff)
downloadsword-sf-cvs-1e057d67306569fcd9896dfcea1f5353810f0a48.tar.gz
sync with crosswire 20020828-1300
Diffstat (limited to 'apps/X11')
-rw-r--r--apps/X11/cheatah/cheatah.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/apps/X11/cheatah/cheatah.cpp b/apps/X11/cheatah/cheatah.cpp
index 38554f3..f01db16 100644
--- a/apps/X11/cheatah/cheatah.cpp
+++ b/apps/X11/cheatah/cheatah.cpp
@@ -515,10 +515,20 @@ void MainWindow::lookupTextChanged() {
keyText = entryText;
if (curMod) {
- curMod->setKey(keyText.c_str());
+ SWKey *key = curMod->CreateKey();
+ VerseKey *vkey = SWDYNAMIC_CAST(VerseKey, key);
+ key->Persist(1);
+ if (vkey) {
+ vkey->Headings(1);
+ vkey->AutoNormalize(0);
+ }
+ *key = keyText.c_str();
+ curMod->setKey(*key);
curMod->Display();
sprintf(tmpBuf, "%s (%s)", curMod->KeyText(), curMod->Name());
gtk_label_set(GTK_LABEL(statusbar1), tmpBuf);
+ curMod->setKey(keyText.c_str());
+ delete key;
}
}