[chronojump/michrolab] Fixed crash on load last mode from start since isometric/elastic separation



commit fdd62af45e5f18ae262d9faff079aaf873db1e0f
Author: Xavier de Blas <xaviblas gmail com>
Date:   Thu Jul 28 16:47:15 2022 +0200

    Fixed crash on load last mode from start since isometric/elastic separation

 src/gui/app1/chronojump.cs | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/src/gui/app1/chronojump.cs b/src/gui/app1/chronojump.cs
index 5a6bc998f..3c05e95fd 100644
--- a/src/gui/app1/chronojump.cs
+++ b/src/gui/app1/chronojump.cs
@@ -2288,6 +2288,7 @@ public partial class ChronoJumpWindow
        private bool comboSelectContactsTopNoFollow;
        private void createComboSelectContactsTop ()
        {
+               LogB.Information ("createComboSelectContactsTop");
                //deactivate signal
                if(combo_select_contacts_top != null)
                        combo_select_contacts_top.Changed -= new EventHandler 
(on_combo_select_contacts_top_changed);
@@ -3899,6 +3900,11 @@ public partial class ChronoJumpWindow
                        notebook_sup.CurrentPage = Convert.ToInt32(notebook_sup_pages.CONTACTS);
                        notebooks_change(m);
 
+                       //we need combo_select_contacts_top before updateForceExerciseCombo
+                       createComboSelectContactsTop ();
+                       label_contacts_exercise_selected_name.Visible = false;
+                       hbox_combo_select_contacts_top_with_arrows.Visible = true; //this will be unneded
+
                        //combos should show exercises (isometric or elastic)
                        updateForceExerciseCombo ();
 
@@ -3938,10 +3944,6 @@ public partial class ChronoJumpWindow
                        label_contacts_exercise_selected_options.Visible = false;
                        image_top_laterality_contacts.Visible = true;
                        setForceSensorLateralityPixbuf();
-
-                       createComboSelectContactsTop ();
-                       label_contacts_exercise_selected_name.Visible = false;
-                       hbox_combo_select_contacts_top_with_arrows.Visible = true; //this will be unneded
                }
                else if(m == Constants.Modes.RUNSENCODER)
                {


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