From ba1176743a536e19bb8b9d68b1c0c0023a0f3101 Mon Sep 17 00:00:00 2001 From: ulf69 Date: Sat, 02 Oct 2004 00:19:45 +0000 Subject: fixed a crash when pressing return(enter) in the syncprofilenames combobox --- diff --git a/libkdepim/ksyncprefsdialog.cpp b/libkdepim/ksyncprefsdialog.cpp index 6e6e631..28aac45 100644 --- a/libkdepim/ksyncprefsdialog.cpp +++ b/libkdepim/ksyncprefsdialog.cpp @@ -132,6 +132,7 @@ void KSyncPrefsDialog::setupSyncAlgTab() mProfileBox = new QComboBox(topFrame); mProfileBox->setEditable ( true ); + mProfileBox->setInsertionPolicy(QComboBox::NoInsertion); connect ( mProfileBox, SIGNAL(activated ( int ) ), this, SLOT (profileChanged( int ) ) ); connect ( mProfileBox, SIGNAL( textChanged ( const QString & ) ), this, SLOT (textChanged( const QString & ) ) ); @@ -347,7 +348,7 @@ void KSyncPrefsDialog::textChanged( const QString & s ) } void KSyncPrefsDialog::profileChanged( int item ) { - //qDebug("KSyncPrefsDialog::profileChanged %d ", item ); + //qDebug("KSyncPrefsDialog::profileChanged before %d, count %d ", item, mProfileBox->count() ); KSyncProfile* prof; saveProfile(); currentSelection = item; diff --git a/libkdepim/ksyncprofile.cpp b/libkdepim/ksyncprofile.cpp index a43ebe2..2bf4e6c 100644 --- a/libkdepim/ksyncprofile.cpp +++ b/libkdepim/ksyncprofile.cpp @@ -83,7 +83,7 @@ void KSyncProfile::setDefault() mPreSyncCommandAB = i18n("command for downloading remote file to local device"); mPostSyncCommandAB = i18n("command for uploading local temp file to remote device"); mLocalTempFileAB = "/tmp/std.vcf"; - mRemoteFileNamePWM = "/home/polo/kdepim/apps/kabc/localfile.vcf"; + mRemoteFileNameAB = "/home/polo/kdepim/apps/kabc/localfile.vcf"; mPreSyncCommandPWM = i18n("command for downloading remote file to local device"); mPostSyncCommandPWM = i18n("command for uploading local temp file to remote device"); mLocalTempFilePWM = "/tmp/passwords.pwm"; -- cgit v0.9.0.2