[chronojump] prints for sprint to see why sometimes sprint treeview is not updated
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] prints for sprint to see why sometimes sprint treeview is not updated
- Date: Mon, 4 Dec 2017 18:29:23 +0000 (UTC)
commit c9fdc5b910e146d5e741123aabc01135272e20ce
Author: Xavier de Blas <xaviblas gmail com>
Date: Mon Dec 4 18:55:09 2017 +0100
prints for sprint to see why sometimes sprint treeview is not updated
src/gui/sprint.cs | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/src/gui/sprint.cs b/src/gui/sprint.cs
index 147bf39..094ed54 100644
--- a/src/gui/sprint.cs
+++ b/src/gui/sprint.cs
@@ -38,6 +38,7 @@ public partial class ChronoJumpWindow
private void createTreeView_runs_interval_sprint (Gtk.TreeView tv)
{
+LogB.Information("SPRINT create a");
UtilGtk.RemoveColumns(tv);
button_sprint.Sensitive = false;
@@ -55,6 +56,7 @@ public partial class ChronoJumpWindow
typeof (string), typeof (string));
tv.Model = storeSprint;
+LogB.Information("SPRINT create b");
if (currentSession == null || currentPerson == null)
return;
@@ -65,8 +67,10 @@ public partial class ChronoJumpWindow
string [] runsArray = SqliteRunInterval.SelectRuns(
false, currentSession.UniqueID, currentPerson.UniqueID, "");
+LogB.Information("SPRINT create c");
foreach (string line in runsArray)
{
+LogB.Information("SPRINT create d");
//[] lineSplit has run params
string [] lineSplit = line.Split(new char[] {':'});
@@ -91,25 +95,33 @@ public partial class ChronoJumpWindow
Util.TrimDecimals(lineSplit[6], preferences.digitsNumber)
};
storeSprint.AppendValues (lineParams);
+LogB.Information("SPRINT create e");
}
+LogB.Information("SPRINT create f");
}
public void addTreeView_runs_interval_sprint (RunInterval runI, RunType runIType)
{
+LogB.Information("SPRINT add 0");
if(storeSprint == null)
+LogB.Information("SPRINT add 1");
{
createTreeView_runs_interval_sprint (treeview_runs_interval_sprint);
+LogB.Information("SPRINT add 2");
return;
}
+LogB.Information("SPRINT add 3");
string positions = getSprintPositions(
runI.DistanceInterval, //distanceInterval. == -1 means variable
distances
runI.IntervalTimesString,
runIType.DistancesString //distancesString
);
+LogB.Information("SPRINT add 4");
if(positions == "")
return;
+LogB.Information("SPRINT add 5");
TreeIter iter = new TreeIter();
bool iterOk = storeSprint.GetIterFirst(out iter);
if(iterOk) {
@@ -125,6 +137,7 @@ public partial class ChronoJumpWindow
TreePath path = storeSprint.GetPath (iter);
treeview_runs_interval_sprint.ScrollToCell (path, null, true, 0, 0);
}
+LogB.Information("SPRINT add 6");
}
private string getSprintPositions(double distanceInterval, string intervalTimesString, string
distancesString)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]