author | zautrix <zautrix> | 2004-09-13 21:35:12 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-09-13 21:35:12 (UTC) |
commit | bd6b4acb39498ffea3beea7d9b5f7620b60c14db (patch) (side-by-side diff) | |
tree | e2d7425b7bb49fbcb7acb5ced497ac1fed06dfaf /kabc | |
parent | 06eabf6e82c0390699d11fd12580d91261829431 (diff) | |
download | kdepimpi-bd6b4acb39498ffea3beea7d9b5f7620b60c14db.zip kdepimpi-bd6b4acb39498ffea3beea7d9b5f7620b60c14db.tar.gz kdepimpi-bd6b4acb39498ffea3beea7d9b5f7620b60c14db.tar.bz2 |
Many bugfixes
-rw-r--r-- | kabc/addressee.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/kabc/addressee.cpp b/kabc/addressee.cpp index 6b282e2..4cdd5e5 100644 --- a/kabc/addressee.cpp +++ b/kabc/addressee.cpp @@ -803,3 +803,9 @@ void Addressee::setNameFromString( const QString &str ) - QStringList titles; + static bool first = true; + static QStringList titles; + static QStringList suffixes; + static QStringList prefixes; + + if ( first ) { + first = false; titles += i18n( "Dr." ); @@ -811,3 +817,2 @@ void Addressee::setNameFromString( const QString &str ) - QStringList suffixes; suffixes += i18n( "I" ); @@ -818,3 +823,2 @@ void Addressee::setNameFromString( const QString &str ) - QStringList prefixes; prefixes += "van"; @@ -823,3 +827,2 @@ void Addressee::setNameFromString( const QString &str ) -//US KConfig config( "kabcrc" ); KConfig config( locateLocal( "config", "kabcrc") ); @@ -832,2 +835,3 @@ void Addressee::setNameFromString( const QString &str ) suffixes.remove( "" ); + } |