summaryrefslogtreecommitdiffstats
path: root/kaddressbook/editors/imeditorwidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kaddressbook/editors/imeditorwidget.cpp')
-rw-r--r--kaddressbook/editors/imeditorwidget.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/kaddressbook/editors/imeditorwidget.cpp b/kaddressbook/editors/imeditorwidget.cpp
index 0da0feb03..ad84505c2 100644
--- a/kaddressbook/editors/imeditorwidget.cpp
+++ b/kaddressbook/editors/imeditorwidget.cpp
@@ -362,6 +362,8 @@ void IMEditorWidget::slotAdd()
void IMEditorWidget::slotEdit()
{
+ if( mReadOnly )
+ return;
TQListViewItemIterator it( mWidget->lvAddresses, TQListViewItemIterator::Selected );
// Just edit the first one selected.