summaryrefslogtreecommitdiffstats
path: root/kaddressbook/imagewidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kaddressbook/imagewidget.cpp')
-rw-r--r--kaddressbook/imagewidget.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/kaddressbook/imagewidget.cpp b/kaddressbook/imagewidget.cpp
index ddacc2cd1..7d8ac8f51 100644
--- a/kaddressbook/imagewidget.cpp
+++ b/kaddressbook/imagewidget.cpp
@@ -222,6 +222,8 @@ void ImageButton::contextMenuEvent( TQContextMenuEvent *event )
void ImageButton::load()
{
+ if ( mReadOnly )
+ return;
KURL url = KFileDialog::getOpenURL( TQString(), KImageIO::pattern(), this );
if ( url.isValid() ) {
if ( mImageLoader ) {