[chronojump] webcam deactivated always at start



commit f6fb9d7b295111a17c7adf4a8703b9a4e02eed4b
Author: Xavier de Blas <xaviblas gmail com>
Date:   Wed Apr 24 15:23:49 2013 +0200

    webcam deactivated always at start

 src/gui/chronojump.cs |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/gui/chronojump.cs b/src/gui/chronojump.cs
index 8779a85..928161f 100644
--- a/src/gui/chronojump.cs
+++ b/src/gui/chronojump.cs
@@ -457,6 +457,10 @@ public partial class ChronoJumpWindow
                //i think report it's deactivated until a new session is created or loaded, 
                //but check what happens if report window is opened
 
+               //put videoOn as false before loading preferences to start always without the camera
+               //this is good if camera produces crash
+               SqlitePreferences.Update("videoOn", "False", false);
+
                //preferencesLoaded is a fix to a gtk#-net-windows-bug where radiobuttons raise signals
                //at initialization of chronojump and gives problems if this signals are raised while 
preferences are loading
                loadPreferences ();


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