summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2018-07-06 11:01:06 +0200
committerEike Rathke <erack@redhat.com>2018-07-06 22:12:00 +0200
commit16fcf30fa53a55fdcd82826fd4d73bbd1b6bd883 (patch)
tree755e0cbd3c00529938b2cb302b5e6d7532154ebd
parent6d1c9d49bd262ba6746f5d5d2dd4e73da72b2324 (diff)
tdf#118547: Remove lock mark only if password is correct
Change-Id: I9f5731dfaaf9b4cc67e600a8b1c01709e7c9ba99 Reviewed-on: https://gerrit.libreoffice.org/57044 Tested-by: Jenkins Reviewed-by: Eike Rathke <erack@redhat.com> (cherry picked from commit c3a732a11c320b98e31dad79f421d4d73f33a15b) Reviewed-on: https://gerrit.libreoffice.org/57056
-rw-r--r--sc/source/ui/view/viewfunc.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/sc/source/ui/view/viewfunc.cxx b/sc/source/ui/view/viewfunc.cxx
index 306d020ec947..e7c8be1aa0d9 100644
--- a/sc/source/ui/view/viewfunc.cxx
+++ b/sc/source/ui/view/viewfunc.cxx
@@ -2557,10 +2557,11 @@ bool ScViewFunc::Unprotect( SCTAB nTab, const OUString& rPassword )
pDocSh->GetUndoManager()->LeaveListAction();
}
- SetTabProtectionSymbol(nTab, false);
-
if (bChanged)
+ {
+ SetTabProtectionSymbol(nTab, false);
UpdateLayerLocks(); //! broadcast to all views
+ }
return bChanged;
}