Diffstat (limited to 'kabc/plugins/file/resourcefile.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | kabc/plugins/file/resourcefile.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/kabc/plugins/file/resourcefile.cpp b/kabc/plugins/file/resourcefile.cpp index 9f9b00f..1d3acec 100644 --- a/kabc/plugins/file/resourcefile.cpp +++ b/kabc/plugins/file/resourcefile.cpp | |||
@@ -42,6 +42,7 @@ $Id$ | |||
42 | #include <klocale.h> | 42 | #include <klocale.h> |
43 | //US #include <ksavefile.h> | 43 | //US #include <ksavefile.h> |
44 | #include <kstandarddirs.h> | 44 | #include <kstandarddirs.h> |
45 | #include <kmessagebox.h> | ||
45 | 46 | ||
46 | #include "formatfactory.h" | 47 | #include "formatfactory.h" |
47 | 48 | ||
@@ -372,9 +373,14 @@ void ResourceFile::fileChanged() | |||
372 | // we are fully constructed | 373 | // we are fully constructed |
373 | if (!addressBook()) | 374 | if (!addressBook()) |
374 | return; | 375 | return; |
376 | |||
377 | |||
378 | QString text( i18n( "File resource '%1'<br> has been changed by third party.<br>Do you want to reload?").arg( mFileName ) ); | ||
379 | if ( readOnly() || KMessageBox::questionYesNo( 0, text ) == KMessageBox::Yes ) { | ||
375 | load(); | 380 | load(); |
376 | addressBook()->emitAddressBookChanged(); | 381 | addressBook()->emitAddressBookChanged(); |
377 | } | 382 | } |
383 | } | ||
378 | 384 | ||
379 | void ResourceFile::removeAddressee( const Addressee &addr ) | 385 | void ResourceFile::removeAddressee( const Addressee &addr ) |
380 | { | 386 | { |