From df25b4dc73b97dba899ff28d63474a28650c4c18 Mon Sep 17 00:00:00 2001 From: jmoenig Date: Tue, 22 Jul 2014 12:33:26 +0200 Subject: fixed #521 deleting variable watchers by dropping them on the palette resulted in wrong ones to be created when showing them again --- threads.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'threads.js') diff --git a/threads.js b/threads.js index 9251b95..fccb2a3 100644 --- a/threads.js +++ b/threads.js @@ -83,7 +83,7 @@ ArgLabelMorph, localize, XML_Element, hex_sha512*/ // Global stuff //////////////////////////////////////////////////////// -modules.threads = '2014-July-21'; +modules.threads = '2014-July-22'; var ThreadManager; var Process; @@ -1109,6 +1109,7 @@ Process.prototype.doShowVar = function (varName) { target, label, others, + isGlobal, name = varName; if (name instanceof Context) { @@ -1135,7 +1136,11 @@ Process.prototype.doShowVar = function (varName) { return; } // if no watcher exists, create a new one - if (target.owner) { + isGlobal = contains( + this.homeContext.receiver.variables.parentFrame.names(), + varName + ); + if (isGlobal || target.owner) { label = name; } else { label = name + ' (temporary)'; -- cgit v1.3.1