Index: ktextedit.cpp
===================================================================
RCS file: /home/kde/kdelibs/kdeui/ktextedit.cpp,v
retrieving revision 1.22
diff -u -r1.22 ktextedit.cpp
--- ktextedit.cpp	21 Aug 2004 15:02:07 -0000	1.22
+++ ktextedit.cpp	16 Oct 2004 22:24:26 -0000
@@ -217,19 +217,22 @@
       menu->changeItem( id - IdPaste, SmallIconSet("editpaste"), menu->text( id - IdPaste) );
       menu->changeItem( id - IdClear, SmallIconSet("editclear"), menu->text( id - IdClear) );
 
-        menu->insertSeparator();
-        id = menu->insertItem( SmallIconSet( "spellcheck" ), i18n( "Check Spelling..." ),
+        if (d->checkSpellingEnabled) {
+            menu->insertSeparator();
+            id = menu->insertItem( SmallIconSet( "spellcheck" ), i18n( "Check Spelling..." ),
                                    this, SLOT( checkSpelling() ) );
 
-        if( text().isEmpty() )
-            menu->setItemEnabled( id, false );
-
+            if( text().isEmpty() )
+                menu->setItemEnabled( id, false );
+/*
         id = menu->insertItem( i18n( "Auto Spell Check" ),
                                this, SLOT( toggleAutoSpellCheck() ) );
         menu->setItemChecked(id, d->checkSpellingEnabled);
-	menu->insertSeparator();
-	id=menu->insertItem(i18n("Allow Tabulations"),this,SLOT(slotAllowTab()));
-	menu->setItemChecked(id, !tabChangesFocus());
+*/
+        }
+        menu->insertSeparator();
+        id=menu->insertItem(i18n("Allow Tabulations"),this,SLOT(slotAllowTab()));
+        menu->setItemChecked(id, !tabChangesFocus());
     }
 
     return menu;
@@ -258,7 +261,7 @@
 
 void KTextEdit::toggleAutoSpellCheck()
 {
-    setCheckSpellingEnabled( !d->checkSpellingEnabled );
+//doesn't work this way    setCheckSpellingEnabled( !d->checkSpellingEnabled );
 }
 
 void KTextEdit::setCheckSpellingEnabled( bool check )
