[med-svn] [SCM] aghermann branch, master, updated. 4f7a3b774136ffffbaf9b05d90bd568347bc5461
Andrei Zavada
johnhommer at gmail.com
Fri Nov 16 00:50:17 UTC 2012
The following commit has been merged in the master branch:
commit 745a77712a3f67633350d909e35c5f047bb0caa2
Author: Andrei Zavada <johnhommer at gmail.com>
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
More information about the debian-med-commit
mailing list