[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/KDE/3.5/kdenetwork/kopete/kopete/chatwindow
From: Matt Rogers <mattr () kde ! org>
Date: 2006-04-09 0:34:23
Message-ID: 1144542863.324854.1435.nullmailer () svn ! kde ! org
[Download RAW message or body]
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()
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic