------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=121072
------- Additional Comments From chanika gmail com 2006-05-08 05:22 -------
SVN commit 538460 by chani:
CCBUG: 121072
patch from Jan Ritzerfeld
Don't put the editor into RichText format if protocol doesn't support it
M +6 -5 krichtexteditpart.cpp
--- branches/kopete/0.12/kopete/kopete/chatwindow/krichtexteditpart.cpp
#538459:538460
@ -74,7 +74,9 @
void KopeteRichTextEditPart::slotSetRichTextEnabled( bool enable )
{
- if( enable )
+ m_richTextEnabled = enable && m_richTextAvailable;
+
+ if( m_richTextEnabled )
{
editor->setTextFormat( Qt::RichText );
}
@ -83,17 +85,16 @
editor->setTextFormat( Qt::PlainText );
}
- m_richTextEnabled = enable;
emit toggleToolbar( buttonsEnabled() );
// Spellchecking disabled when using rich text because the
// text we were getting from widget was coloured HTML!
- editor->setCheckSpellingEnabled( !richTextEnabled() );
- checkSpelling->setEnabled( !richTextEnabled() );
+ editor->setCheckSpellingEnabled( !m_richTextEnabled );
+ checkSpelling->setEnabled( !m_richTextEnabled );
//Enable / disable buttons
updateActions();
- enableRichText->setChecked( richTextEnabled() );
+ enableRichText->setChecked( m_richTextEnabled );
}
void KopeteRichTextEditPart::checkToolbarEnabled()
_______________________________________________
kopete-devel mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/kopete-devel