Changeset 1489
- Timestamp:
- 12/04/19 17:09:27 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/expeditee/gui/Frame.java
r1488 r1489 42 42 43 43 import org.expeditee.actions.Simple; 44 import org.expeditee.auth.AuthenticatorBrowser; 44 45 import org.expeditee.auth.mail.gui.MailBay; 45 46 import org.expeditee.core.Colour; … … 213 214 public boolean isReadOnly() { 214 215 return !_frameName.hasPermission(UserAppliedPermission.full) && !_protectionChanged; 216 } 217 218 public boolean isEncryptableFrame() { 219 boolean hasEncryptionLabel = this.getEncryptionLabel() != null; 220 boolean isProfileFrame = this.getPath().equals(FrameIO.PROFILE_PATH); 221 boolean isCredentialsFrame = isProfileFrame && this.getNumber() == AuthenticatorBrowser.CREDENTIALS_FRAME; 222 return hasEncryptionLabel && !isCredentialsFrame; 215 223 } 216 224 … … 3031 3039 if (this._groupFrame != null) { 3032 3040 return this._groupFrame; 3033 } else {3041 } else if (this._groupFrameName != null){ 3034 3042 this._groupFrame = FrameIO.LoadFrame(this._groupFrameName + 1, FrameIO.GROUP_PATH); 3035 3043 return this._groupFrame; 3044 } else { 3045 return null; 3036 3046 } 3037 3047 }
Note:
See TracChangeset
for help on using the changeset viewer.