modalDialog: remove old actions from _actionKeys in setButtons

https://bugzilla.gnome.org/show_bug.cgi?id=640781
This commit is contained in:
Maxim Ermilov 2011-01-31 02:15:19 +03:00
parent e3acaa05be
commit 0310f07eab

View File

@ -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];