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

List:       kde-commits
Subject:    KDE/kdelibs/khtml/rendering
From:       Laurent Montel <montel () kde ! org>
Date:       2008-01-28 7:23:53
Message-ID: 1201505033.613717.12806.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 767501 by mlaurent:

Use "document()->isEmpty()" to test if ktextedit is empty


 M  +4 -4      render_form.cpp  


--- trunk/KDE/kdelibs/khtml/rendering/render_form.cpp #767500:767501
@@ -1620,13 +1620,13 @@
         popup->addSeparator();
 
         popup->addAction( m_findAction );
-        m_findAction->setEnabled( !toPlainText().isEmpty() );
+        m_findAction->setEnabled( !document()->isEmpty() );
 
         popup->addAction( m_findNextAction );
         m_findNextAction->setEnabled( m_find != 0 );
 
         popup->addAction( m_replaceAction );
-        m_replaceAction->setEnabled( !toPlainText().isEmpty() );
+        m_replaceAction->setEnabled( !document()->isEmpty() );
     }
 
     popup->exec(e->globalPos());
@@ -1769,7 +1769,7 @@
 
 void TextAreaWidget::slotFind()
 {
-    if( toPlainText().isEmpty() )  // saves having to track the text changes
+    if( document()->isEmpty() )  // saves having to track the text changes
         return;
 
     if ( m_findDlg ) {
@@ -1789,7 +1789,7 @@
 
 void TextAreaWidget::slotReplace()
 {
-    if( toPlainText().isEmpty() )  // saves having to track the text changes
+    if( document()->isEmpty() )  // saves having to track the text changes
         return;
 
     if ( m_repDlg ) {
[prev in list] [next in list] [prev in thread] [next in thread] 

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