[chronojump] ForceSensor analyze: fixed crash on export same A,B



commit 83b1e8cb28f2a87372ec1f14aadeaf7352d458f8
Author: Xavier de Blas <xaviblas gmail com>
Date:   Tue Mar 26 19:36:10 2019 +0100

    ForceSensor analyze: fixed crash on export same A,B

 src/gui/forceSensorAnalyze.cs | 6 ++++++
 1 file changed, 6 insertions(+)
---
diff --git a/src/gui/forceSensorAnalyze.cs b/src/gui/forceSensorAnalyze.cs
index dd284f6f..bce81f87 100644
--- a/src/gui/forceSensorAnalyze.cs
+++ b/src/gui/forceSensorAnalyze.cs
@@ -1148,6 +1148,12 @@ public partial class ChronoJumpWindow
 
        private void on_button_force_sensor_analyze_AB_save_clicked (object o, EventArgs args)
        {
+               if (label_force_sensor_ai_time_a.Text == label_force_sensor_ai_time_b.Text)
+               {
+                       new DialogMessage(Constants.MessageTypes.WARNING, "A nd B cannot be the same");
+                       return;
+               }
+
                if (canDoForceSensorAnalyzeAB())
                        checkFile(Constants.CheckFileOp.FORCESENSOR_ANALYZE_SAVE_AB);
                else {


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