[chronojump] Fixed not adding exercise name on combo_contacts_top after new forceSensor exercise



commit 9ffb0740a88a3d70d249932c24c20b18d8852435
Author: Xavier de Blas <xaviblas gmail com>
Date:   Wed Sep 22 16:47:17 2021 +0200

    Fixed not adding exercise name on combo_contacts_top after new forceSensor exercise

 src/gui/app1/forceSensor.cs | 10 ++++++++++
 1 file changed, 10 insertions(+)
---
diff --git a/src/gui/app1/forceSensor.cs b/src/gui/app1/forceSensor.cs
index d61bbd68f..3f2a5b7c2 100644
--- a/src/gui/app1/forceSensor.cs
+++ b/src/gui/app1/forceSensor.cs
@@ -3150,6 +3150,16 @@ LogB.Information(" fs R ");
                        combo_force_sensor_exercise.Active = 0;
                else
                        combo_force_sensor_exercise.Active = 
UtilGtk.ComboMakeActive(combo_force_sensor_exercise, name);
+
+               //update also combo_select_contacts_top (but check do not crash on start)
+               if(combo_select_contacts_top != null)
+               {
+                       comboSelectContactsTopNoFollow = true;
+                       UtilGtk.ComboUpdate(combo_select_contacts_top,
+                                       UtilGtk.ComboGetValues (combo_force_sensor_exercise), "");
+                       combo_select_contacts_top.Active = combo_force_sensor_exercise.Active;
+                       comboSelectContactsTopNoFollow = false;
+               }
        }
 
        private void combo_force_sensor_button_sensitive_exercise(bool exerciseSelected)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]