summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2021-06-09 10:25:14 +0900
committerSlávek Banko <slavek.banko@axis.cz>2022-02-17 16:26:41 +0100
commit4e1db18ef73b46681707b9d32b0203b693c3ef9f (patch)
tree528c1e2c94ca3bfb4529b8d7f0259d0cc8ddc45e
parent41359d89f446ab11bfe1d0205f438b16210b5a99 (diff)
downloadtdelibs-4e1db18ef73b46681707b9d32b0203b693c3ef9f.tar.gz
tdelibs-4e1db18ef73b46681707b9d32b0203b693c3ef9f.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)
-rw-r--r--kio/kfile/kpropertiesdialog.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/kio/kfile/kpropertiesdialog.cpp b/kio/kfile/kpropertiesdialog.cpp
index 51b82aa1c..85110b6bc 100644
--- a/kio/kfile/kpropertiesdialog.cpp
+++ b/kio/kfile/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);