Commit 782074b
committed
Calc: Fix read-only file opening in edit mode
The guard `!this._documentInfo` was intended to call `setPermission`
only on the first status message. However, `this._documentInfo` was
assigned to `textMsg` one line before the check, causing the guard
to always evaluate to false and preventing `setPermission` from
ever executing.
Move the `_documentInfo` assignment after the read-only check so
the guard functions as intended.
Signed-off-by: Darshan-upadhyay1110 <darshan.upadhyay@collabora.com>
Change-Id: Ifc9ba699eb15fb69e74776856142c6a0267f3d031 parent c94cd15 commit 782074b
1 file changed
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
427 | 427 | | |
428 | 428 | | |
429 | 429 | | |
430 | | - | |
431 | | - | |
432 | | - | |
433 | 430 | | |
434 | 431 | | |
435 | 432 | | |
436 | 433 | | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
437 | 438 | | |
438 | 439 | | |
439 | 440 | | |
| |||
0 commit comments