SVN commit 527646 by mattr: fix automatic spellchecking when turning off rich text M +18 -5 kopetechatwindow.cpp --- branches/KDE/3.5/kdenetwork/kopete/kopete/chatwindow/kopetechatwindow.cpp #527645:527646 @@ -500,14 +500,27 @@ return; if ( m_activeView->editPart()->richTextEnabled() ) + { toggleAutoSpellCheck->setEnabled( false ); + toggleAutoSpellCheck->setChecked( false ); + m_activeView->editPart()->toggleAutoSpellCheck( false ); + } else + { toggleAutoSpellCheck->setEnabled( true ); - - if ( m_activeView->editPart()->autoSpellCheckEnabled() ) - toggleAutoSpellCheck->setChecked( true ); - else - toggleAutoSpellCheck->setChecked( false ); + if ( KopetePrefs::prefs()->spellCheck() ) + { + kdDebug(14000) << k_funcinfo << "spell check enabled" << endl; + toggleAutoSpellCheck->setChecked( true ); + m_activeView->editPart()->toggleAutoSpellCheck(true); + } + else + { + kdDebug(14000) << k_funcinfo << "spell check disabled" << endl; + toggleAutoSpellCheck->setChecked( false ); + m_activeView->editPart()->toggleAutoSpellCheck(false); + } + } } void KopeteChatWindow::slotHistoryUp()