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 77de34391c)
v3.5.13-sru
Michele Calgaro 3 years ago committed by Slávek Banko
parent 41359d89f4
commit 4e1db18ef7
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -2093,16 +2093,19 @@ void KFilePermissionsPropsPlugin::slotShowAdvancedPermissions() {
if ( col != 3 ) theNotSpecials.append( cb ); if ( col != 3 ) theNotSpecials.append( cb );
cba[row][col] = cb; cba[row][col] = cb;
cb->setChecked(aPermissions & fperm[row][col]); cb->setChecked(aPermissions & fperm[row][col]);
if ( d->canChangePermissions )
{
allDisable = false;
}
if ( aPartialPermissions & fperm[row][col] ) if ( aPartialPermissions & fperm[row][col] )
{ {
cb->setTristate(); cb->setTristate();
if( d->canChangePermissions ) {
allDisable = false;
}
cb->setNoChange(); cb->setNoChange();
} }
else if (d->cbRecursive && d->cbRecursive->isChecked()) else if (d->cbRecursive && d->cbRecursive->isChecked())
cb->setTristate(); {
cb->setTristate();
}
cb->setEnabled( d->canChangePermissions ); cb->setEnabled( d->canChangePermissions );
gl->addWidget (cb, row+2, col+1); gl->addWidget (cb, row+2, col+1);

Loading…
Cancel
Save