summaryrefslogtreecommitdiffabout
path: root/kabc/addressee.cpp
Side-by-side diff
Diffstat (limited to 'kabc/addressee.cpp') (more/less context) (show whitespace changes)
-rw-r--r--kabc/addressee.cpp12
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( "" );
+ }