From kde-commits Mon Jan 28 07:23:03 2008 From: Laurent Montel Date: Mon, 28 Jan 2008 07:23:03 +0000 To: kde-commits Subject: branches/KDE/4.0/kdelibs/kdeui/widgets Message-Id: <1201504983.686460.12718.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=120150499809950 SVN commit 767500 by mlaurent: Backport: Fix improvment M +2 -2 ktextedit.cpp --- branches/KDE/4.0/kdelibs/kdeui/widgets/ktextedit.cpp #767499:767500 @@ -302,7 +302,7 @@ if ( separatorAction ) { KAction *clearAllAction = KStandardAction::clear( this, SLOT( clear() ), this) ; - if ( toPlainText().isEmpty() ) + if ( document()->isEmpty() ) clearAllAction->setEnabled( false ); popup->insertAction( separatorAction, clearAllAction ); } @@ -445,7 +445,7 @@ connect(spellDialog, SIGNAL(stop()), this, SLOT(spellCheckerFinished())); d->originalBuffer = toPlainText(); - spellDialog->setBuffer(toPlainText()); + spellDialog->setBuffer(d->originalBuffer); spellDialog->show(); }