diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-08-09 12:10:26 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-08-10 15:23:25 +0200 |
commit | e980542150085b65567ffe85c6acb72aa5f6e13a (patch) | |
tree | a3f39922ccac01447466e3b4648bcdde59b594e3 /sw/source/uibase | |
parent | 0b027e9cd0e456945a2190735dcff1c84b5671a2 (diff) |
gtktiledviewer: fix incorrect undo/redo state
Edit state = false disabled undo, then edit state = true enabled the
undo button, even the last LOK callback was '.uno:Undo=disabled'. Fix
this by storing the LOK state in a map, and using it when edit is
enabled.
With this, clicking on the Edit button right after loading a document
results disabled undo/redo buttons as expected.
Change-Id: Id6023f976f135555a43486f71603c823e59d8d60
Reviewed-on: https://gerrit.libreoffice.org/28003
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
(cherry picked from commit 5cb52cf97d04859c0c730cf03430254041d6388b)
Diffstat (limited to 'sw/source/uibase')
0 files changed, 0 insertions, 0 deletions