summaryrefslogtreecommitdiff
path: root/core/pim/addressbook/abeditor.cpp
Side-by-side diff
Diffstat (limited to 'core/pim/addressbook/abeditor.cpp') (more/less context) (show whitespace changes)
-rw-r--r--core/pim/addressbook/abeditor.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/core/pim/addressbook/abeditor.cpp b/core/pim/addressbook/abeditor.cpp
index 6354db9..91e8722 100644
--- a/core/pim/addressbook/abeditor.cpp
+++ b/core/pim/addressbook/abeditor.cpp
@@ -48,13 +48,13 @@ void parseEmailFrom( const QString &txt, QString &strDefaultEmail,
// helper convert from file format to comma delimited...
void parseEmailTo( const QString &strDefaultEmail,
const QString &strOtherEmail, QString &strBack );
-AbEditor::AbEditor( const Contact &entry, const QValueList<int> *newOrdered,
+AbEditor::AbEditor( const OContact &entry, const QValueList<int> *newOrdered,
QStringList *slNewOrdered,
QWidget *parent = 0, const char *name = 0, WFlags fl = 0 )
: QDialog( parent, name, TRUE, fl ),
orderedValues( newOrdered ),
slOrdered( slNewOrdered )
{
@@ -179,13 +179,13 @@ void AbEditor::loadFields()
QListIterator<QLabel> lit( listName );
for ( it = slOrdered->begin(); *lit; ++lit, ++it ) {
(*lit)->setText( *it );
}
}
-void AbEditor::setEntry( const Contact &entry )
+void AbEditor::setEntry( const OContact &entry )
{
ent = entry;
QListIterator<QLineEdit> it( listValue );
firstEdit->setText( ent.firstName() );
lastEdit->setText( ent.lastName() );
cmbCat->setCategories( ent.categories(), "Contacts", tr("Contacts") );
@@ -546,12 +546,13 @@ void parseEmailFrom( const QString &txt, QString &strDefaultEmail,
QString &strAll )
{
int where,
start;
if ( txt.isEmpty() )
return;
+
// find the first
where = txt.find( ',' );
if ( where < 0 ) {
strDefaultEmail = txt;
strAll = txt;
} else {