[chronojump] Fixed crash on edit event



commit 2e05951665a6559e63e76b331452ac14aea0f574
Author: Xavier de Blas <xaviblas gmail com>
Date:   Fri Jan 4 04:12:33 2013 +0100

    Fixed crash on edit event

 src/gui/event.cs |   12 ++++++++++++
 src/gui/jump.cs  |   10 +++++-----
 2 files changed, 17 insertions(+), 5 deletions(-)
---
diff --git a/src/gui/event.cs b/src/gui/event.cs
index 389d621..23b1a31 100644
--- a/src/gui/event.cs
+++ b/src/gui/event.cs
@@ -421,6 +421,18 @@ public class EditEventWindow
 	protected virtual void fillAngle(Event myEvent) {
 	}
 		
+	protected virtual void on_radio_single_leg_1_toggled(object o, EventArgs args) {
+	}
+	protected virtual void on_radio_single_leg_2_toggled(object o, EventArgs args) {
+	}
+	protected virtual void on_radio_single_leg_3_toggled(object o, EventArgs args) {
+	}
+	protected virtual void on_radio_single_leg_4_toggled(object o, EventArgs args) {
+	}
+	protected virtual void on_spin_single_leg_changed(object o, EventArgs args) {
+	}
+
+
 	private void on_entry_tv_value_changed (object o, EventArgs args) {
 		if(Util.IsNumber(entry_tv_value.Text.ToString(), true)){
 			entryTv = entry_tv_value.Text.ToString();
diff --git a/src/gui/jump.cs b/src/gui/jump.cs
index cc1a2f2..4bf5ffe 100644
--- a/src/gui/jump.cs
+++ b/src/gui/jump.cs
@@ -267,7 +267,7 @@ public class EditJumpWindow : EditEventWindow
 		toggleRaisesSignal = true;
 	}
 	
-	private void on_radio_single_leg_1_toggled(object o, EventArgs args) {
+	protected override void on_radio_single_leg_1_toggled(object o, EventArgs args) {
 		if(toggleRaisesSignal) {
 			string description = entry_description.Text;
 			if(! slCMJDescriptionIsValid(description))
@@ -288,7 +288,7 @@ public class EditJumpWindow : EditEventWindow
 		}
 	}
 
-	private void on_radio_single_leg_2_toggled(object o, EventArgs args) {
+	protected override void on_radio_single_leg_2_toggled(object o, EventArgs args) {
 		if(toggleRaisesSignal) {
 			string description = entry_description.Text;
 			if(! slCMJDescriptionIsValid(description))
@@ -305,7 +305,7 @@ public class EditJumpWindow : EditEventWindow
 		}
 	}
 
-	private void on_radio_single_leg_3_toggled(object o, EventArgs args) {
+	protected override void on_radio_single_leg_3_toggled(object o, EventArgs args) {
 		if(toggleRaisesSignal) {
 			string description = entry_description.Text;
 			if(! slCMJDescriptionIsValid(description))
@@ -324,7 +324,7 @@ public class EditJumpWindow : EditEventWindow
 		}
 	}
 
-	private void on_radio_single_leg_4_toggled(object o, EventArgs args) {
+	protected override void on_radio_single_leg_4_toggled(object o, EventArgs args) {
 		if(toggleRaisesSignal) {
 			string description = entry_description.Text;
 			if(! slCMJDescriptionIsValid(description))
@@ -343,7 +343,7 @@ public class EditJumpWindow : EditEventWindow
 		}
 	}
 
-	private void on_spin_single_leg_changed(object o, EventArgs args) {
+	protected override void on_spin_single_leg_changed(object o, EventArgs args) {
 		if(toggleRaisesSignal) {
 			string description = entry_description.Text;
 			if(! slCMJDescriptionIsValid(description))



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