diff options
author | Matt K <mattkse@gmail.com> | 2024-01-09 17:23:34 -0600 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2024-01-11 05:19:28 +0100 |
commit | e004c9dd2cc0da7f27503d14bfc13975889eea77 (patch) | |
tree | 41a06a220e4d6168a3a361e3bee5b274b7087391 /sw/source/uibase/sidebar | |
parent | 7bd7085bcfce0b32179197a14189604d4c7478e1 (diff) |
tdf#158937 Allow cancel of password dialog during recovery
The problem is that when a user cancels the password dialog
during recovery, the code tries to do something with the
doc, but there is no doc yet because the file is password
protected and not opened, so it crashes. The fix is just
to check for the absence of errors before using the doc
(canceling the password dialog is considered an abort/
general IO error).
Change-Id: Ia76d8e4ff8212427d6b7b0a67ce1971b9ea8a48d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161844
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'sw/source/uibase/sidebar')
0 files changed, 0 insertions, 0 deletions