[chronojump] force sensor recalculate checks if csv file exists



commit a5ada105cc2f265cd94f632402ce2b1550f1e258
Author: Xavier de Blas <xaviblas gmail com>
Date:   Tue Apr 10 11:54:26 2018 +0200

    force sensor recalculate checks if csv file exists

 src/gui/forceSensor.cs |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/gui/forceSensor.cs b/src/gui/forceSensor.cs
index bfc7af8..53d74d9 100644
--- a/src/gui/forceSensor.cs
+++ b/src/gui/forceSensor.cs
@@ -994,6 +994,12 @@ LogB.Information(" fc R ");
 
        private void on_button_force_sensor_analyze_recalculate_clicked (object o, EventArgs args)
        {
+               if(! Util.FileExists(lastForceSensorFullPath))
+               {
+                       new DialogMessage(Constants.MessageTypes.WARNING, Constants.FileNotFound);
+                       return;
+               }
+
                if(lastForceSensorFullPath != null && lastForceSensorFullPath != "")
                        forceSensorCopyTempAndDoGraphs();
        }


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