aboutsummaryrefslogtreecommitdiffstats
path: root/apps/X11
diff options
context:
space:
mode:
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;
}
}