Fixed inversed logic:

invitations in body -> autosend always true.
invitations as attachment -> autosend is configurable.

Not sure if it's good practice to setChecked(true) when disabling the checkbox,
to show that it will be set - this could OTOH be a little inconvenient when
checking/unchecking the other checkbox, and the side effect remains.

svn path=/trunk/kdepim/; revision=358215
wilder-work
David Faure 22 years ago
parent 09fc14d063
commit 36063530cf
  1. 7
      configuredialog.cpp

@ -4183,8 +4183,6 @@ MiscPageGroupwareTab::MiscPageGroupwareTab( QWidget* parent, const char* name )
automaticSendingItem()->whatsThis().utf8() ) );
connect( mAutomaticSending, SIGNAL( stateChanged( int ) ),
this, SLOT( slotEmitChanged( void ) ) );
connect( mLegacyBodyInvites, SIGNAL( toggled( bool ) ),
mAutomaticSending, SLOT( setEnabled( bool ) ) );
// Open space padding at the end
new QLabel( this );
@ -4207,6 +4205,9 @@ void MiscPageGroupwareTab::slotLegacyBodyInvitesToggled( bool on )
KMessageBox::information( this, txt, QString::null,
"LegacyBodyInvitesWarning" );
}
// Invitations in the body are autosent in any case (no point in editing raw ICAL)
// So the autosend option is only available if invitations are sent as attachment.
mAutomaticSending->setEnabled( !mLegacyBodyInvites->isChecked() );
}
void MiscPage::GroupwareTab::load() {
@ -4220,7 +4221,7 @@ void MiscPage::GroupwareTab::load() {
mLegacyBodyInvites->setChecked( GlobalSettings::legacyBodyInvites() );
mLegacyBodyInvites->blockSignals( false );
mAutomaticSending->setChecked( GlobalSettings::automaticSending() );
mAutomaticSending->setEnabled( mLegacyBodyInvites->isChecked() );
mAutomaticSending->setEnabled( !mLegacyBodyInvites->isChecked() );
// Read the IMAP resource config
mEnableImapResCB->setChecked( GlobalSettings::theIMAPResourceEnabled() );

Loading…
Cancel
Save