summaryrefslogtreecommitdiffabout
path: root/microkde/kresources
Side-by-side diff
Diffstat (limited to 'microkde/kresources') (more/less context) (ignore whitespace changes)
-rw-r--r--microkde/kresources/configdialog.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/microkde/kresources/configdialog.cpp b/microkde/kresources/configdialog.cpp
index 24e82bc..55253c0 100644
--- a/microkde/kresources/configdialog.cpp
+++ b/microkde/kresources/configdialog.cpp
@@ -118,58 +118,58 @@ ConfigDialog::ConfigDialog( QWidget *parent, const QString& resourceFamily,
void ConfigDialog::setInEditMode( bool value )
{
if ( mConfigWidget )
mConfigWidget->setInEditMode( value );
}
void ConfigDialog::slotNameChanged( const QString &text)
{
enableButtonOK( !text.isEmpty() );
}
void ConfigDialog::setReadOnly( bool value )
{
if (mPersistentReadOnly == false)
mReadOnly->setChecked( value );
else
mReadOnly->setChecked( true );
}
void ConfigDialog::setIncludeInSync( bool value )
{
if (mPersistentReadOnly == false)
mIncludeInSync->setChecked( value );
else
- mIncludeInSync->setChecked( true );
+ mIncludeInSync->setChecked( false );
}
void ConfigDialog::setPersistentReadOnly( bool value )
{
mPersistentReadOnly = value;
if (value == true) {
setReadOnly( true );
- setIncludeInSync( true );
+ setIncludeInSync( false );
}
mReadOnly->setEnabled( !value );
mIncludeInSync->setEnabled (!value );
}
void ConfigDialog::accept()
{
if ( mName->text().isEmpty() ) {
KMessageBox::sorry( this, i18n( "Please enter a resource name" ) );
return;
}
mResource->setResourceName( mName->text() );
mResource->setReadOnly( mReadOnly->isChecked() );
mResource->setIncludeInSync( mIncludeInSync->isChecked() );
if ( mConfigWidget ) {
// First save generic information
// Also save setting of specific resource type
mConfigWidget->saveSettings( mResource );
}