[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/kdepim/enterprise4/kdelibs-4.1-branch/kdeui/widgets
From: Laurent Montel <montel () kde ! org>
Date: 2009-03-29 20:14:35
Message-ID: 1238357675.526254.4383.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 946626 by mlaurent:
Backport:
don't replace if it's readonly
M +2 -2 ktextedit.cpp
--- branches/kdepim/enterprise4/kdelibs-4.1-branch/kdeui/widgets/ktextedit.cpp #946625:946626
@@ -620,7 +620,7 @@
void KTextEdit::slotReplaceNext()
{
- if (!d->replace)
+ if (!d->replace || isReadOnly())
return;
if (!(d->replace->options() & KReplaceDialog::PromptOnReplace))
@@ -721,7 +721,7 @@
void KTextEdit::slotReplace()
{
- if( document()->isEmpty() ) // saves having to track the text changes
+ if( document()->isEmpty() || isReadOnly() ) // saves having to track the text changes
return;
if ( d->repDlg ) {
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic