author | ulf69 <ulf69> | 2004-10-13 22:22:18 (UTC) |
---|---|---|
committer | ulf69 <ulf69> | 2004-10-13 22:22:18 (UTC) |
commit | 909d25797c50fc38c435834a68aaf60bf87e32f9 (patch) (unidiff) | |
tree | 6aaccef9033325ece72d95b39b3c0a7e591e73c3 /microkde | |
parent | 7c2a228f94d8bcb783ce6f3527cb2daa9221217b (diff) | |
download | kdepimpi-909d25797c50fc38c435834a68aaf60bf87e32f9.zip kdepimpi-909d25797c50fc38c435834a68aaf60bf87e32f9.tar.gz kdepimpi-909d25797c50fc38c435834a68aaf60bf87e32f9.tar.bz2 |
bugfix: disable "IncludeInSync" if resource is readOnly, because it is an external resource
-rw-r--r-- | microkde/kresources/configdialog.cpp | 4 |
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 | |||
@@ -130,34 +130,34 @@ void ConfigDialog::setReadOnly( bool value ) | |||
130 | { | 130 | { |
131 | if (mPersistentReadOnly == false) | 131 | if (mPersistentReadOnly == false) |
132 | mReadOnly->setChecked( value ); | 132 | mReadOnly->setChecked( value ); |
133 | else | 133 | else |
134 | mReadOnly->setChecked( true ); | 134 | mReadOnly->setChecked( true ); |
135 | } | 135 | } |
136 | 136 | ||
137 | void ConfigDialog::setIncludeInSync( bool value ) | 137 | void ConfigDialog::setIncludeInSync( bool value ) |
138 | { | 138 | { |
139 | if (mPersistentReadOnly == false) | 139 | if (mPersistentReadOnly == false) |
140 | mIncludeInSync->setChecked( value ); | 140 | mIncludeInSync->setChecked( value ); |
141 | else | 141 | else |
142 | mIncludeInSync->setChecked( true ); | 142 | mIncludeInSync->setChecked( false ); |
143 | } | 143 | } |
144 | 144 | ||
145 | void ConfigDialog::setPersistentReadOnly( bool value ) | 145 | void ConfigDialog::setPersistentReadOnly( bool value ) |
146 | { | 146 | { |
147 | mPersistentReadOnly = value; | 147 | mPersistentReadOnly = value; |
148 | 148 | ||
149 | if (value == true) { | 149 | if (value == true) { |
150 | setReadOnly( true ); | 150 | setReadOnly( true ); |
151 | setIncludeInSync( true ); | 151 | setIncludeInSync( false ); |
152 | } | 152 | } |
153 | 153 | ||
154 | mReadOnly->setEnabled( !value ); | 154 | mReadOnly->setEnabled( !value ); |
155 | mIncludeInSync->setEnabled (!value ); | 155 | mIncludeInSync->setEnabled (!value ); |
156 | } | 156 | } |
157 | 157 | ||
158 | 158 | ||
159 | void ConfigDialog::accept() | 159 | void ConfigDialog::accept() |
160 | { | 160 | { |
161 | if ( mName->text().isEmpty() ) { | 161 | if ( mName->text().isEmpty() ) { |
162 | KMessageBox::sorry( this, i18n( "Please enter a resource name" ) ); | 162 | KMessageBox::sorry( this, i18n( "Please enter a resource name" ) ); |
163 | return; | 163 | return; |