From 0310f07eab6aae46287a2a85e48873f229e85f51 Mon Sep 17 00:00:00 2001 From: Maxim Ermilov Date: Mon, 31 Jan 2011 02:15:19 +0300 Subject: [PATCH] modalDialog: remove old actions from _actionKeys in setButtons https://bugzilla.gnome.org/show_bug.cgi?id=640781 --- js/ui/modalDialog.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/js/ui/modalDialog.js b/js/ui/modalDialog.js index fee62662a..45a1e3c38 100644 --- a/js/ui/modalDialog.js +++ b/js/ui/modalDialog.js @@ -84,6 +84,8 @@ ModalDialog.prototype = { setButtons: function(buttons) { this._buttonLayout.destroy_children(); + this._actionKeys = {}; + let i = 0; for (let index in buttons) { let buttonInfo = buttons[index];