The following commit has been merged in the master branch:
commit 745a77712a3f67633350d909e35c5f047bb0caa2
Author: Andrei Zavada <[email protected]>
Date: Sun Oct 14 15:42:41 2012 +0300
enable multiple MF actually to run simulations
(only one being able to run it live)
diff --git a/src/ui/modelrun-facility_cb.cc b/src/ui/modelrun-facility_cb.cc
index b06b7f5..11b235e 100644
--- a/src/ui/modelrun-facility_cb.cc
+++ b/src/ui/modelrun-facility_cb.cc
@@ -154,17 +154,14 @@ bMFRun_clicked_cb( GtkButton*, gpointer userdata)
{
auto& MF = *(SModelrunFacility*)userdata;
- if ( this_mf ) {
- return;
- }
-
aghui::SBusyBlock bb (MF.wModelrunFacility);
- // tunables have been set live
-
+ void (*fun)(void*) = (this_mf == nullptr)
+ ? (this_mf = &MF, this_mf_siman_param_printer)
+ : nullptr;
MF.csimulation.watch_simplex_move(
gtk_toggle_button_get_active(
(GtkToggleButton*)MF.eMFLiveUpdate)
- ? (this_mf = &MF, this_mf_siman_param_printer) : nullptr);
+ ? fun : nullptr);
this_mf = nullptr;
MF.snapshot();
--
Sleep experiment manager
_______________________________________________
debian-med-commit mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/debian-med-commit