summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2016-08-09 12:10:26 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2016-08-09 11:27:40 +0000
commit5cb52cf97d04859c0c730cf03430254041d6388b (patch)
treedd5667d087ded3212a456fcd485ab17a6cf8e1c5 /bin
parent08c963e49ddb25ee2f52ad218b72604faf323ba8 (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>
Diffstat (limited to 'bin')
0 files changed, 0 insertions, 0 deletions