diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2021-06-09 10:25:14 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2021-06-10 09:35:29 +0900 |
commit | 3a54b40c67d9d0cd79d7d17df5f21544d715baa1 (patch) | |
tree | 574d4cbc302d0de967aedaf91a506984f7ce3980 /tdeio | |
parent | 99230dfa11c426f95aa9195eb19270d644c2277d (diff) | |
download | tdelibs-3a54b40c67d9d0cd79d7d17df5f21544d715baa1.tar.gz tdelibs-3a54b40c67d9d0cd79d7d17df5f21544d715baa1.zip |
Fixed enabling of Ok button in advanced permission property dialog. This resolves bug 2375.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 77de34391ccb667b81dd54e5af17ce660ed99a25)
Diffstat (limited to 'tdeio')
-rw-r--r-- | tdeio/tdefile/kpropertiesdialog.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/tdeio/tdefile/kpropertiesdialog.cpp b/tdeio/tdefile/kpropertiesdialog.cpp index ae8aae85d..fe2401191 100644 --- a/tdeio/tdefile/kpropertiesdialog.cpp +++ b/tdeio/tdefile/kpropertiesdialog.cpp @@ -2093,16 +2093,19 @@ void KFilePermissionsPropsPlugin::slotShowAdvancedPermissions() { if ( col != 3 ) theNotSpecials.append( cb ); cba[row][col] = cb; cb->setChecked(aPermissions & fperm[row][col]); + if ( d->canChangePermissions ) + { + allDisable = false; + } if ( aPartialPermissions & fperm[row][col] ) { cb->setTristate(); - if( d->canChangePermissions ) { - allDisable = false; - } cb->setNoChange(); } else if (d->cbRecursive && d->cbRecursive->isChecked()) - cb->setTristate(); + { + cb->setTristate(); + } cb->setEnabled( d->canChangePermissions ); gl->addWidget (cb, row+2, col+1); |