[chronojump] force sensor recalculate checks if csv file exists
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] force sensor recalculate checks if csv file exists
- Date: Tue, 10 Apr 2018 11:45:18 +0000 (UTC)
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]