[med-svn] [SCM] aghermann branch, master, updated. f0d4c0fd35bf09e7dff56ddb9a2d798ae916c2ef

Andrei Zavada johnhommer at gmail.com
Sun Feb 3 12:53:20 UTC 2013


The following commit has been merged in the master branch:
commit 10bc1c33f465d78d1902b97f8cbc184c171d3ff7
Author: Andrei Zavada <johnhommer at gmail.com>
Date:   Sun Feb 3 13:20:11 2013 +0200

    set both EEG- and All-current channel in channel combo on msmt view

diff --git a/src/ui/mw/mw_cb.cc b/src/ui/mw/mw_cb.cc
index 718195d..7aec441 100644
--- a/src/ui/mw/mw_cb.cc
+++ b/src/ui/mw/mw_cb.cc
@@ -245,8 +245,11 @@ eMsmtChannel_changed_cb( GtkComboBox *combobox, gpointer userdata)
 {
 	auto& ED = *(SExpDesignUI*)userdata;
 	auto oldval = ED._AghTi;
+	auto newval = gtk_combo_box_get_active_id( combobox);
 	ED._AghTi = find( ED.AghTT.begin(), ED.AghTT.end(),
-		       gtk_combo_box_get_active_id( combobox));
+			  newval);
+	ED._AghHi = find( ED.AghHH.begin(), ED.AghHH.end(),
+			  newval);
 	if ( /* _AghTi != AghTT.end() && */ oldval != ED._AghTi )
 		ED.populate_1();
 	if ( ED.autoscale )

-- 
Sleep experiment manager



More information about the debian-med-commit mailing list