[gnome-shell] modalDialog: remove old actions from _actionKeys in setButtons
- From: Maxim Ermilov <mermilov src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] modalDialog: remove old actions from _actionKeys in setButtons
- Date: Tue, 1 Feb 2011 20:44:10 +0000 (UTC)
commit 0310f07eab6aae46287a2a85e48873f229e85f51
Author: Maxim Ermilov <zaspire rambler ru>
Date: Mon Jan 31 02:15:19 2011 +0300
modalDialog: remove old actions from _actionKeys in setButtons
https://bugzilla.gnome.org/show_bug.cgi?id=640781
js/ui/modalDialog.js | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/modalDialog.js b/js/ui/modalDialog.js
index fee6266..45a1e3c 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];
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]