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



commit 7c3361185999114825f2bd2e8b5c5fdffc900e56
Author: Xavier de Blas <xaviblas gmail com>
Date:   Wed Sep 22 16:48:23 2021 +0200

    Fixed not adding exercise name on combo_contacts_top after new raceAnalyzer exercise

 src/gui/app1/runEncoder.cs | 10 ++++++++++
 1 file changed, 10 insertions(+)
---
diff --git a/src/gui/app1/runEncoder.cs b/src/gui/app1/runEncoder.cs
index f8c6660f8..756c4cdc8 100644
--- a/src/gui/app1/runEncoder.cs
+++ b/src/gui/app1/runEncoder.cs
@@ -1814,6 +1814,16 @@ public partial class ChronoJumpWindow
                        combo_run_encoder_exercise.Active = 0;
                else
                        combo_run_encoder_exercise.Active = 
UtilGtk.ComboMakeActive(combo_run_encoder_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_run_encoder_exercise), "");
+                       combo_select_contacts_top.Active = combo_run_encoder_exercise.Active;
+                       comboSelectContactsTopNoFollow = false;
+               }
        }
 
        //info is now info and edit (all values can be changed), and detete (there's delete button)


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