From 1e057d67306569fcd9896dfcea1f5353810f0a48 Mon Sep 17 00:00:00 2001 From: danglassey Date: Wed, 28 Aug 2002 13:02:00 +0000 Subject: sync with crosswire 20020828-1300 --- apps/X11/cheatah/cheatah.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'apps/X11') 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; } } -- cgit