Diffstat (limited to 'libkdepim/ksyncprefsdialog.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | libkdepim/ksyncprefsdialog.cpp | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/libkdepim/ksyncprefsdialog.cpp b/libkdepim/ksyncprefsdialog.cpp index 27f7932..744a914 100644 --- a/libkdepim/ksyncprefsdialog.cpp +++ b/libkdepim/ksyncprefsdialog.cpp | |||
@@ -593,10 +593,12 @@ void KSyncPrefsDialog::profileChanged( int item ) | |||
593 | 593 | ||
594 | QStringList res = QStringList::split( ":",prof->getResSpecKopi()); | 594 | QStringList res = QStringList::split( ":",prof->getResSpecKopi(), true ); |
595 | int i= res.count()/2; | 595 | int add = res.count()/2; |
596 | for ( ;i < res.count(); ++i ) { | 596 | int i; |
597 | mResTableKopi->setText( i, 0, res[i] ); | 597 | for ( i = 0;i < add ; ++i ) { |
598 | } | 598 | mResTableKopi->setText( i, 0, res[i+add] ); |
599 | res = QStringList::split( ":",prof->getResSpecKapi()); | 599 | } |
600 | for ( i = 0;i < res.count(); ++i ) { | 600 | res = QStringList::split( ":",prof->getResSpecKapi(), true); |
601 | mResTableKapi->setText( i, 0, res[i] ); | 601 | add = res.count()/2; |
602 | for ( i = 0;i < add; ++i ) { | ||
603 | mResTableKapi->setText( i, 0, res[i+add] ); | ||
602 | } | 604 | } |