From 9f5e007f4859027eaeb989c620ec62fc698b44cc Mon Sep 17 00:00:00 2001
From: eilers <eilers>
Date: Wed, 11 Dec 2002 17:15:12 +0000
Subject: Added dialogbox to notify that the vcard was unable to read

---
diff --git a/core/pim/addressbook/addressbook.cpp b/core/pim/addressbook/addressbook.cpp
index e009d52..a1ce5a0 100644
--- a/core/pim/addressbook/addressbook.cpp
+++ b/core/pim/addressbook/addressbook.cpp
@@ -353,6 +353,12 @@ void AddressbookWindow::setDocument( const QString &filename )
 	OContactAccess::List allList = access->allRecords();
 	qWarning( "Found number of contacts in File: %d", allList.count() );
 
+	if ( !allList.count() ) {
+		QMessageBox::information( this, "Import VCard",
+					  "It was impossible to import the VCard.\n"
+					  "The VCard may be corrupted !" );
+	}
+
 	bool doAsk = true;
 	OContactAccess::List::Iterator it;
 	for ( it = allList.begin(); it != allList.end(); ++it ){
--
cgit v0.9.0.2