[chronojump] Fixed crash on changing to encoder mode on start since 1.7.0-341
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Fixed crash on changing to encoder mode on start since 1.7.0-341
- Date: Mon, 19 Jun 2017 15:08:38 +0000 (UTC)
commit f185793d7a41f5ce2bea65ab24f41cdf1abb97b0
Author: Xavier de Blas <xaviblas gmail com>
Date: Mon Jun 19 17:05:11 2017 +0200
Fixed crash on changing to encoder mode on start since 1.7.0-341
src/gui/encoder.cs | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/gui/encoder.cs b/src/gui/encoder.cs
index aece22d..82e4ef0 100644
--- a/src/gui/encoder.cs
+++ b/src/gui/encoder.cs
@@ -690,8 +690,15 @@ public partial class ChronoJumpWindow
string exerciseNameTranslated = Util.FindOnArray(':', 0, 2, exerciseID.ToString(),
encoderExercisesTranslationAndBodyPWeight);
+ /*
+ * close/open db because "combo_encoder_exercise_capture.Active" changing will call:
+ * void on_combo_encoder_exercise_capture_changed (object o, EventArgs args)
+ * and this will call array1RMUpdate() that will close/open SQL
+ */
+ Sqlite.Close();
combo_encoder_exercise_capture.Active = UtilGtk.ComboMakeActive(
combo_encoder_exercise_capture, exerciseNameTranslated);
+ Sqlite.Open();
//2 contraction
string contraction = "";
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]