[chronojump] CurrentPerson updated (== null) on new session
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] CurrentPerson updated (== null) on new session
- Date: Tue, 20 Feb 2018 14:40:32 +0000 (UTC)
commit cf79616e4961d5c162258acc2602fa63482d0504
Author: Xavier de Blas <xaviblas gmail com>
Date: Tue Feb 20 15:38:12 2018 +0100
CurrentPerson updated (== null) on new session
src/gui/chronojump.cs | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/src/gui/chronojump.cs b/src/gui/chronojump.cs
index 24929da..b18120f 100644
--- a/src/gui/chronojump.cs
+++ b/src/gui/chronojump.cs
@@ -2303,6 +2303,7 @@ public partial class ChronoJumpWindow
hbox_persons_bottom_photo.Sensitive = false;
hbox_persons_bottom_no_photo.Sensitive = false;
+ label_top_person_name.Text = "";
//update report
report.SessionID = currentSession.UniqueID;
@@ -2482,8 +2483,13 @@ public partial class ChronoJumpWindow
if(foundPersons) {
//activate the gui for persons in main window
sensitiveGuiYesPerson();
- } else
+ label_top_person_name.Text = currentPerson.Name;
+ } else {
+ currentPerson = null;
+ label_top_person_name.Text = "";
vbox_manage_persons.Visible = true;
+ }
+
//update report
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]