[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/KDE/4.0/kdelibs/kdeui/widgets
From:       Laurent Montel <montel () kde ! org>
Date:       2008-01-28 7:23:03
Message-ID: 1201504983.686460.12718.nullmailer () svn ! kde ! org
[Download RAW message or body]

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();
 }
 
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic