From kde-commits Mon Jan 28 07:23:53 2008 From: Laurent Montel Date: Mon, 28 Jan 2008 07:23:53 +0000 To: kde-commits Subject: KDE/kdelibs/khtml/rendering Message-Id: <1201505033.613717.12806.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=120150504110010 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 ) {