Diffstat (limited to 'core/pim/addressbook/ocontactfields.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/pim/addressbook/ocontactfields.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/pim/addressbook/ocontactfields.cpp b/core/pim/addressbook/ocontactfields.cpp index ffb88e8..831a596 100644 --- a/core/pim/addressbook/ocontactfields.cpp +++ b/core/pim/addressbook/ocontactfields.cpp | |||
@@ -417,13 +417,13 @@ void OContactFields::loadFromRecord( const OContact &cnt ){ | |||
417 | qDebug("effective fieldOrder in loadFromRecord >%s<",fieldOrder.latin1()); | 417 | qDebug("effective fieldOrder in loadFromRecord >%s<",fieldOrder.latin1()); |
418 | } | 418 | } |
419 | 419 | ||
420 | void OContactFields::setFieldOrder( int num, int index ){ | 420 | void OContactFields::setFieldOrder( int num, int index ){ |
421 | qDebug("qcontactfields setfieldorder pos %i -> %i",num,index); | 421 | qDebug("qcontactfields setfieldorder pos %i -> %i",num,index); |
422 | 422 | ||
423 | fieldOrder[num] = QString::number( index )[0]; | 423 | fieldOrder[num] = QString::number( index, 16 )[0]; |
424 | 424 | ||
425 | // We will store this new fieldorder globally to | 425 | // We will store this new fieldorder globally to |
426 | // remember it for contacts which have none | 426 | // remember it for contacts which have none |
427 | globalFieldOrder = fieldOrder; | 427 | globalFieldOrder = fieldOrder; |
428 | changedFieldOrder = true; | 428 | changedFieldOrder = true; |
429 | 429 | ||
@@ -438,13 +438,13 @@ int OContactFields::getFieldOrder( int num, int defIndex ){ | |||
438 | QChar poschar = fieldOrder[num]; | 438 | QChar poschar = fieldOrder[num]; |
439 | 439 | ||
440 | bool ok; | 440 | bool ok; |
441 | int ret = 0; | 441 | int ret = 0; |
442 | // Convert char to number.. | 442 | // Convert char to number.. |
443 | if ( !( poschar == QChar::null ) ) | 443 | if ( !( poschar == QChar::null ) ) |
444 | ret = QString( poschar ).toInt(&ok, 10); | 444 | ret = QString( poschar ).toInt(&ok, 16); |
445 | else | 445 | else |
446 | ok = false; | 446 | ok = false; |
447 | 447 | ||
448 | // Return default value if index for | 448 | // Return default value if index for |
449 | // num was not set or if anything else happened.. | 449 | // num was not set or if anything else happened.. |
450 | if ( !ok ) ret = defIndex; | 450 | if ( !ok ) ret = defIndex; |