From d53d967e9734ef3939966933bda39a7d4ad615cc Mon Sep 17 00:00:00 2001 From: Johannes Ranke Date: Wed, 9 Dec 2015 17:10:54 +0100 Subject: Make unchecking pathways to sink persistent Closes #4. This got lost with the GUI overhaul for v0.6.x --- NEWS.md | 4 ++++ inst/GUI/gmkin.R | 1 + 2 files changed, 5 insertions(+) diff --git a/NEWS.md b/NEWS.md index 805ce1e..bad01bd 100644 --- a/NEWS.md +++ b/NEWS.md @@ -4,6 +4,10 @@ - Various small corrections of unexpected or incorrect GUI behaviour. See git commit logs for details. +### Bug fixes + +- Unchecking the pathway to sink in the model editor was ignored. + ## gmkin 0.6-3 (2015-11-28) - Various small layout and GUI logic improvements based on the suggestions by Stefan Meinecke (Umweltbundesamt Germany). Thanks, also for the financial support from the Umweltbundesamt! diff --git a/inst/GUI/gmkin.R b/inst/GUI/gmkin.R index b58f2e7..ef60139 100644 --- a/inst/GUI/gmkin.R +++ b/inst/GUI/gmkin.R @@ -931,6 +931,7 @@ show_m_spec <- function() { # Set R and Ext values separately, as multiple selections are not supported svalue(m.e.to[[obs.i]]) <<- obs.to_string_R m.e.to[[obs.i]]$call_Ext("select", String(obs.to_string_JS)) + svalue(m.e.sink[[obs.i]]) <<- m.cur$spec[[obs.i]]$sink } } show_m_spec() -- cgit v1.2.1