summaryrefslogtreecommitdiffabout
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--bin/kdepim/kaddressbook/germantranslation.txt4
-rw-r--r--kabc/plugins/file/resourcefile.cpp2
-rw-r--r--kaddressbook/kabcore.cpp17
3 files changed, 19 insertions, 4 deletions
diff --git a/bin/kdepim/kaddressbook/germantranslation.txt b/bin/kdepim/kaddressbook/germantranslation.txt
index 7879194..e54e140 100644
--- a/bin/kdepim/kaddressbook/germantranslation.txt
+++ b/bin/kdepim/kaddressbook/germantranslation.txt
@@ -746,13 +746,17 @@
746{ "High clock skew!","Großer Uhrzeitunterschied!" }, 746{ "High clock skew!","Großer Uhrzeitunterschied!" },
747{ "ADJUST\nYOUR\nCLOCKS!","JUSTIERE\nDIE\nUHREN!" }, 747{ "ADJUST\nYOUR\nCLOCKS!","JUSTIERE\nDIE\nUHREN!" },
748{ "The clocks of the syncing\ndevices have a difference\nof more than 5 minutes.\nPlease adjust your clocks.\nYou may get wrong syncing results!\nPlease confirm synchronization!","Die Uhren der syncenden Geräte\nhaben einen Unterschied von\nmehr als 5 Minuten. Bitte die\nUhrzeiten anpassen. Sie können\nfalsche Sync-Resultate erhalten!\nBitte das Syncen bestätigen!" }, 748{ "The clocks of the syncing\ndevices have a difference\nof more than 5 minutes.\nPlease adjust your clocks.\nYou may get wrong syncing results!\nPlease confirm synchronization!","Die Uhren der syncenden Geräte\nhaben einen Unterschied von\nmehr als 5 Minuten. Bitte die\nUhrzeiten anpassen. Sie können\nfalsche Sync-Resultate erhalten!\nBitte das Syncen bestätigen!" },
749{ "Change search field enable jump bar","Ändere Suchfeld um Jumpbar anzuzeigen" }, 749{ "Change search field enable jump bar","Ändere Suchfeld um Jumpbar anzuzeigen" },
750{ "Search with '*' prefix (wildcard)","Suche mit '*' Prefix (Wildcard)" }, 750{ "Search with '*' prefix (wildcard)","Suche mit '*' Prefix (Wildcard)" },
751{ "Shrink searchfield in portrait view","Verkleinere Suchfeld im Portraitmodus" }, 751{ "Shrink searchfield in portrait view","Verkleinere Suchfeld im Portraitmodus" },
752{ "Edit new contact","Bearbeite neuen Kontakt" }, 752{ "Edit new contact","Bearbeite neuen Kontakt" },
753{ "Edit ","Bearbeite " }, 753{ "Edit ","Bearbeite " },
754{ "No contact changed!","Kein Kontakt verändert" },
755{ "%1 contacts changed!","%1 Kontakte geändert!" },
756{ "","" },
757{ "","" },
754{ "","" }, 758{ "","" },
755{ "","" }, 759{ "","" },
756{ "","" }, 760{ "","" },
757{ "","" }, 761{ "","" },
758{ "","" }, \ No newline at end of file 762{ "","" }, \ No newline at end of file
diff --git a/kabc/plugins/file/resourcefile.cpp b/kabc/plugins/file/resourcefile.cpp
index af76558..2bd9e71 100644
--- a/kabc/plugins/file/resourcefile.cpp
+++ b/kabc/plugins/file/resourcefile.cpp
@@ -196,17 +196,17 @@ bool ResourceFile::doOpen()
196 if ( ok ) 196 if ( ok )
197 file.close(); 197 file.close();
198 198
199 return ok; 199 return ok;
200 } else { 200 } else {
201 if ( !file.open( IO_ReadWrite ) ) 201 if ( !file.open( IO_ReadWrite ) )
202 return false; 202 return false;
203 203
204 if ( file.size() == 0 ) { 204 if ( file.size() < 10 ) {
205 file.close(); 205 file.close();
206 return true; 206 return true;
207 } 207 }
208 208
209 bool ok = mFormat->checkFormat( &file ); 209 bool ok = mFormat->checkFormat( &file );
210 file.close(); 210 file.close();
211 211
212 return ok; 212 return ok;
diff --git a/kaddressbook/kabcore.cpp b/kaddressbook/kabcore.cpp
index 20b107e..fa9f130 100644
--- a/kaddressbook/kabcore.cpp
+++ b/kaddressbook/kabcore.cpp
@@ -2434,18 +2434,22 @@ void KABCore::setFormattedName()
2434 } 2434 }
2435 XXPortSelectDialog dlg( this, false, this ); 2435 XXPortSelectDialog dlg( this, false, this );
2436 if ( !dlg.exec() ) 2436 if ( !dlg.exec() )
2437 return; 2437 return;
2438 mAddressBook->setUntagged(); 2438 mAddressBook->setUntagged();
2439 dlg.tagSelected(); 2439 dlg.tagSelected();
2440 int count = 0; 2440 int count = 0;
2441 KABC::AddressBook::Iterator it; 2441 KABC::AddressBook::Iterator it;
2442 bool modified = false;
2442 for ( it = mAddressBook->begin(); it != mAddressBook->end(); ++it ) { 2443 for ( it = mAddressBook->begin(); it != mAddressBook->end(); ++it ) {
2443 if ( (*it).tagged() ) { 2444 if ( (*it).tagged() ) {
2445 if ( (*it).uid().left( 2 ) == "la" )
2446 if ( (*it).uid().left( 19 ) == QString("last-syncAddressee-") )
2447 continue;
2444 ++count; 2448 ++count;
2445 if ( count %10 == 0 ) 2449 if ( count %10 == 0 )
2446 message(i18n("Changing contact #%1").arg( count ) ); 2450 message(i18n("Changing contact #%1").arg( count ) );
2447 qApp->processEvents(); 2451 qApp->processEvents();
2448 QString fName; 2452 QString fName;
2449 if ( setpref.simple->isChecked() ) 2453 if ( setpref.simple->isChecked() )
2450 fName = NameEditDialog::formattedName( (*it), NameEditDialog::SimpleName ); 2454 fName = NameEditDialog::formattedName( (*it), NameEditDialog::SimpleName );
2451 else if ( setpref.full->isChecked() ) 2455 else if ( setpref.full->isChecked() )
@@ -2453,24 +2457,31 @@ void KABCore::setFormattedName()
2453 else if ( setpref.reverse->isChecked() ) 2457 else if ( setpref.reverse->isChecked() )
2454 fName = NameEditDialog::formattedName( (*it), NameEditDialog::ReverseName ); 2458 fName = NameEditDialog::formattedName( (*it), NameEditDialog::ReverseName );
2455 else 2459 else
2456 fName = (*it).organization(); 2460 fName = (*it).organization();
2457 if ( setpref.setCompany->isChecked() ) 2461 if ( setpref.setCompany->isChecked() )
2458 if ( fName.isEmpty() || fName =="," ) 2462 if ( fName.isEmpty() || fName =="," )
2459 fName = (*it).organization(); 2463 fName = (*it).organization();
2460 (*it).setFormattedName( fName ); 2464 (*it).setFormattedName( fName );
2465 (*it).setChanged( true );
2466 modified = true;
2467 (*it).setRevision( QDateTime::currentDateTime() );
2461 } 2468 }
2462 } 2469 }
2463 message(i18n("Refreshing view...") ); 2470 message(i18n("Refreshing view...") );
2464 qApp->processEvents(); 2471 qApp->processEvents();
2465 mViewManager->refreshView( "" ); 2472 if ( modified )
2473 setModified( true );
2466 Addressee add; 2474 Addressee add;
2467 mDetails->setAddressee( add ); 2475 mDetails->setAddressee( add );
2468 message(i18n("Setting formatted name completed!") ); 2476 if ( count == 0 )
2477 message(i18n("No contact changed!") );
2478 else
2479 message(i18n("%1 contacts changed!").arg( count ) );
2469} 2480}
2470 2481
2471void KABCore::clipboardDataChanged() 2482void KABCore::clipboardDataChanged()
2472{ 2483{
2473 2484
2474 if ( mReadWrite ) 2485 if ( mReadWrite )
2475 mActionPaste->setEnabled( !QApplication::clipboard()->text().isEmpty() ); 2486 mActionPaste->setEnabled( !QApplication::clipboard()->text().isEmpty() );
2476 2487