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

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

SVN commit 767498 by mlaurent:

Minor improvment.
Don't test with toPaintText but with document()->isEmpty() ?


 M  +2 -2      ktextedit.cpp  


--- trunk/KDE/kdelibs/kdeui/widgets/ktextedit.cpp #767497:767498
@@ -308,7 +308,7 @@
       if ( separatorAction )
       {
           KAction *clearAllAction = KStandardAction::clear( this, SLOT( clear() ), \
                this) ;
-          if ( toPlainText().isEmpty() )
+          if ( document()->isEmpty() )
               clearAllAction->setEnabled( false );
           popup->insertAction( separatorAction, clearAllAction );
       }
@@ -461,7 +461,7 @@
           this, SLOT(spellCheckerFinished()));
   connect(spellDialog, SIGNAL(spellCheckStatus(const QString \
&)),this,SIGNAL(spellCheckStatus(const QString &)));  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