[chronojump] Fixed analysis single, curves num combo when person changes



commit 21679f8e386ddb34a777eb03e29d3389293fc191
Author: Xavier de Blas <xaviblas gmail com>
Date:   Sat Nov 29 12:35:18 2014 +0100

    Fixed analysis single, curves num combo when person changes

 src/gui/encoder.cs |   22 +++++-----------------
 1 files changed, 5 insertions(+), 17 deletions(-)
---
diff --git a/src/gui/encoder.cs b/src/gui/encoder.cs
index 1525fef..2fd8c9b 100644
--- a/src/gui/encoder.cs
+++ b/src/gui/encoder.cs
@@ -3395,24 +3395,12 @@ public partial class ChronoJumpWindow
                
                label_encoder_user_curves_all_num.Text = data.Count.ToString();
        
-               if(check_encoder_analyze_signal_or_curves.Active)       //current signal
+               if(check_encoder_analyze_signal_or_curves.Active)       //current set (signal)
                {
-                       int rows = UtilGtk.CountRows(encoderCaptureListStore);
-                       if(ecconLast != "c")
-                               rows = rows / 2;
-                       string [] activeCurvesList;
-                       if(rows == 0)
-                               activeCurvesList = Util.StringToStringArray("");
-                       else {
-                               activeCurvesList = new String[rows];
-                               for(int i=0; i < rows; i++)
-                                       activeCurvesList[i] = (i+1).ToString();
-                       }
-       
-                       UtilGtk.ComboUpdate(combo_encoder_analyze_curve_num_combo, activeCurvesList, "");
-                       combo_encoder_analyze_curve_num_combo.Active = 
-                               UtilGtk.ComboMakeActive(combo_encoder_analyze_curve_num_combo, 
activeCurvesList[0]);
-               } else {        //current signal
+                       //when person changes, current signal is not loaded, 
+                       //then combo_encoder_analyze_curve_num_combo has to be empty
+                       UtilGtk.ComboUpdate(combo_encoder_analyze_curve_num_combo, new string [] {}, "");
+               } else {        //saved repetitions
                        updateComboEncoderAnalyzeCurveNum(data, activeCurvesNum);       
                }
        


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