diff --git a/programs/editor/widgets/editHyperlinks.js b/programs/editor/widgets/editHyperlinks.js index 6ca61a521..40176a97b 100644 --- a/programs/editor/widgets/editHyperlinks.js +++ b/programs/editor/widgets/editHyperlinks.js @@ -84,7 +84,7 @@ define("webodf/editor/widgets/editHyperlinks", [ function updateHyperlinkButtons() { var controllerEnabled = hyperlinkController && hyperlinkController.isEnabled(), - linksInSelection = controllerEnabled && editorSession.getSelectedHyperlinks(); + linksInSelection; // Enable to disable all widgets initially widget.children.forEach(function (element) {