[chronojump] Fixed session comments the cursos of the text always go to the end. Now check ValidSQL on accept
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Fixed session comments the cursos of the text always go to the end. Now check ValidSQL on accept
- Date: Tue, 3 Nov 2020 11:36:23 +0000 (UTC)
commit 552f87fd69948277a2af7fa4cd9f08425acfe040
Author: Xavier de Blas <xaviblas gmail com>
Date: Tue Nov 3 12:34:58 2020 +0100
Fixed session comments the cursos of the text always go to the end. Now check ValidSQL on accept
src/gui/app1/session/addEdit.cs | 21 +--------------------
1 file changed, 1 insertion(+), 20 deletions(-)
---
diff --git a/src/gui/app1/session/addEdit.cs b/src/gui/app1/session/addEdit.cs
index efc5a753..26e00117 100644
--- a/src/gui/app1/session/addEdit.cs
+++ b/src/gui/app1/session/addEdit.cs
@@ -47,7 +47,6 @@ public partial class ChronoJumpWindow
bool app1sae_addSession;
bool app1sae_combosCreated = false;
- private bool app1sae_textviewChanging = false;
GenericWindow app1sae_genericWin;
@@ -115,9 +114,6 @@ public partial class ChronoJumpWindow
//app1sae_labelUpdate();
app1sae_radios_changed();
- app1sae_textview_comments.Buffer.Changed += new EventHandler(app1sae_textviewChanged);
- app1sae_textviewChanging = false;
-
if(! addSession)
app1sae_showSportStuffWithLoadedData();
}
@@ -184,21 +180,6 @@ public partial class ChronoJumpWindow
app1sae_entry_place.Text = Util.MakeValidSQL(app1sae_entry_place.Text);
}
- private void app1sae_textviewChanged(object o,EventArgs args)
- {
- if(app1sae_textviewChanging)
- return;
-
- app1sae_textviewChanging = true;
-
- TextBuffer tb = o as TextBuffer;
- if (o == null)
- return;
-
- tb.Text = Util.MakeValidSQL(tb.Text);
- app1sae_textviewChanging = false;
- }
-
void app1sae_sensitiveButtonAccept()
{
if(app1sae_entry_name.Text.ToString().Length > 0 &&
@@ -660,7 +641,7 @@ public partial class ChronoJumpWindow
LogB.Information("app1sae_on_button_accept_clicked 7");
string place = Util.RemoveTildeAndColon(app1sae_entry_place.Text);
- string comments = Util.RemoveTildeAndColon(app1sae_textview_comments.Buffer.Text);
+ string comments =
Util.RemoveTildeAndColon(Util.MakeValidSQL(app1sae_textview_comments.Buffer.Text));
LogB.Information("app1sae_on_button_accept_clicked 8");
if(app1sae_addSession)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]