[chronojump] Fixed bug displaying jump, jumpRj weight after edit (on !weigthStatsPercent), it was ok after sessio
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Fixed bug displaying jump, jumpRj weight after edit (on !weigthStatsPercent), it was ok after sessio
- Date: Tue, 15 Feb 2022 15:07:59 +0000 (UTC)
commit 1933408796186c2d7abb34fffe7f04d58ec7dd5f
Author: Xavier de Blas <xaviblas gmail com>
Date: Tue Feb 15 16:07:20 2022 +0100
Fixed bug displaying jump, jumpRj weight after edit (on !weigthStatsPercent), it was ok after session
reload
src/gui/app1/chronojump.cs | 22 ++++++----------------
1 file changed, 6 insertions(+), 16 deletions(-)
---
diff --git a/src/gui/app1/chronojump.cs b/src/gui/app1/chronojump.cs
index 17ddfb890..96781758f 100644
--- a/src/gui/app1/chronojump.cs
+++ b/src/gui/app1/chronojump.cs
@@ -6281,20 +6281,15 @@ LogB.Debug("mc finished 5");
}
}
- private void on_edit_selected_jump_accepted (object o, EventArgs args) {
+ private void on_edit_selected_jump_accepted (object o, EventArgs args)
+ {
LogB.Information("edit selected jump accepted");
Jump myJump = SqliteJump.SelectJumpData( myTreeViewJumps.EventSelectedID, false );
//if person changed, fill treeview again, if not, only update it's line
- if(eventOldPerson == myJump.PersonID) {
- if(! preferences.weightStatsPercent) {
- double personWeight = SqlitePersonSession.SelectAttribute(
- false, myJump.PersonID, currentSession.UniqueID,
Constants.Weight);
- myJump.Weight = Util.WeightFromPercentToKg(myJump.Weight, personWeight);
- }
+ if(eventOldPerson == myJump.PersonID)
myTreeViewJumps.Update(myJump);
- }
else
pre_fillTreeView_jumps(false);
@@ -6305,20 +6300,15 @@ LogB.Debug("mc finished 5");
stats_win_fillTreeView_stats(false, false);
}
- private void on_edit_selected_jump_rj_accepted (object o, EventArgs args) {
+ private void on_edit_selected_jump_rj_accepted (object o, EventArgs args)
+ {
LogB.Information("edit selected jump RJ accepted");
JumpRj myJump = SqliteJumpRj.SelectJumpData( "jumpRj", myTreeViewJumpsRj.EventSelectedID,
false );
//if person changed, fill treeview again, if not, only update it's line
- if(eventOldPerson == myJump.PersonID) {
- if(! preferences.weightStatsPercent) {
- double personWeight = SqlitePersonSession.SelectAttribute(
- false, myJump.PersonID, currentSession.UniqueID,
Constants.Weight);
- myJump.Weight = Util.WeightFromPercentToKg(myJump.Weight, personWeight);
- }
+ if(eventOldPerson == myJump.PersonID)
myTreeViewJumpsRj.Update(myJump);
- }
else
pre_fillTreeView_jumps_rj(false);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]