-rw-r--r-- | kabc/plugins/qtopia/resourceqtopia.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/kabc/plugins/qtopia/resourceqtopia.cpp b/kabc/plugins/qtopia/resourceqtopia.cpp index 4854197..7475685 100644 --- a/kabc/plugins/qtopia/resourceqtopia.cpp +++ b/kabc/plugins/qtopia/resourceqtopia.cpp | |||
@@ -40,6 +40,7 @@ $Id$ | |||
40 | #include <klocale.h> | 40 | #include <klocale.h> |
41 | //US #include <ksavefile.h> | 41 | //US #include <ksavefile.h> |
42 | #include <kstandarddirs.h> | 42 | #include <kstandarddirs.h> |
43 | #include <kmessagebox.h> | ||
43 | 44 | ||
44 | #include <qpe/pim/addressbookaccess.h> | 45 | #include <qpe/pim/addressbookaccess.h> |
45 | 46 | ||
@@ -335,9 +336,13 @@ void ResourceQtopia::fileChanged() | |||
335 | // we are fully constructed | 336 | // we are fully constructed |
336 | if (!addressBook()) | 337 | if (!addressBook()) |
337 | return; | 338 | return; |
339 | |||
340 | QString text( i18n( "Qtopia resource '%1'<br> has been changed by third party.<br>Do you want to reload?").arg( mFileName ) ); | ||
341 | if ( readOnly() || KMessageBox::questionYesNo( 0, text ) == KMessageBox::Yes ) { | ||
338 | load(); | 342 | load(); |
339 | addressBook()->emitAddressBookChanged(); | 343 | addressBook()->emitAddressBookChanged(); |
340 | } | 344 | } |
345 | } | ||
341 | 346 | ||
342 | void ResourceQtopia::removeAddressee( const Addressee &addr ) | 347 | void ResourceQtopia::removeAddressee( const Addressee &addr ) |
343 | { | 348 | { |