[chronojump] Minor fix to last commit



commit 76e6c8b7aff22f13a7889961cfb58f5e70d32a3c
Author: Xavier de Blas <xaviblas gmail com>
Date:   Mon May 29 12:37:06 2017 +0200

    Minor fix to last commit

 src/gui/networks.cs |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/src/gui/networks.cs b/src/gui/networks.cs
index cd4dd06..9e3493e 100644
--- a/src/gui/networks.cs
+++ b/src/gui/networks.cs
@@ -336,8 +336,10 @@ public partial class ChronoJumpWindow
                }
                */
 
-               label_rfid_contacts.Visible = (UtilAll.GetOSEnum() == UtilAll.OperatingSystems.LINUX);
-               label_rfid_encoder.Visible = (UtilAll.GetOSEnum() == UtilAll.OperatingSystems.LINUX);
+               //label_rfid_contacts.Visible = (UtilAll.GetOSEnum() == UtilAll.OperatingSystems.LINUX);
+               //label_rfid_encoder.Visible = (UtilAll.GetOSEnum() == UtilAll.OperatingSystems.LINUX);
+               label_rfid_contacts.Visible = false;
+               label_rfid_encoder.Visible = false;
        }
 
        private bool pulseRFID ()
@@ -438,6 +440,9 @@ public partial class ChronoJumpWindow
 
        private void on_button_person_popup_clicked (object o, EventArgs args)
        {
+               if(currentPerson == null)
+                       return;
+
                Json json = new Json();
                List<Task> tasks = json.GetTasks(currentPerson.UniqueID);
                showDialogPersonPopup(tasks);


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