[chronojump] On person delete from session, do not hide tests of treeviews, fixes: issue 425



commit 5ab417e47acacf8edb9e26c9593ad1c10737c0da
Author: Xavier de Blas <xaviblas gmail com>
Date:   Mon Oct 19 10:09:00 2020 +0200

    On person delete from session, do not hide tests of treeviews, fixes: issue 425

 src/gui/app1/chronojump.cs        | 8 ++++----
 src/gui/app1/chronojumpPersons.cs | 8 ++++----
 2 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/src/gui/app1/chronojump.cs b/src/gui/app1/chronojump.cs
index bfdb894d..702ba5ba 100644
--- a/src/gui/app1/chronojump.cs
+++ b/src/gui/app1/chronojump.cs
@@ -1277,7 +1277,7 @@ public partial class ChronoJumpWindow
        }
                
 
-       private void resetAllTreeViews(bool fill, bool resetPersons, bool fillPersons)
+       private void resetAllTreeViews(bool fillTests, bool resetPersons, bool fillPersons)
        {
                //persons
                if(resetPersons) {
@@ -1298,7 +1298,7 @@ public partial class ChronoJumpWindow
 
                treeview_multi_chronopic_storeReset(true); //this neeed DB
 
-               if(fill)
+               if(fillTests)
                {
                        fillTreeView_jumps(Constants.AllJumpsNameStr(), true);
                        fillTreeView_jumps_rj(Constants.AllJumpsNameStr(), true);
@@ -2520,7 +2520,7 @@ public partial class ChronoJumpWindow
                        stats_win_initializeSession();
                }
 
-               resetAllTreeViews(false, true, false); //fill, resetPersons, fillPersons
+               resetAllTreeViews(false, true, false); //fillTests, resetPersons, fillPersons
 
                //if we are on analyze tab, switch to capture tab
                radio_mode_contacts_capture.Active = true;
@@ -2605,7 +2605,7 @@ public partial class ChronoJumpWindow
                if(createdStatsWin && ! configChronojump.Exhibition) //slow Sqlite calls for Exhibition big 
data
                        stats_win_initializeSession();
 
-               resetAllTreeViews(! configChronojump.Exhibition, true, true); //fill, resetPersons, 
fillPersons
+               resetAllTreeViews(! configChronojump.Exhibition, true, true); //fillTests, resetPersons, 
fillPersons
 
                //if we are on analyze tab, switch to capture tab
                radio_mode_contacts_capture.Active = true;
diff --git a/src/gui/app1/chronojumpPersons.cs b/src/gui/app1/chronojumpPersons.cs
index 1cf19f7c..f089924c 100644
--- a/src/gui/app1/chronojumpPersons.cs
+++ b/src/gui/app1/chronojumpPersons.cs
@@ -378,14 +378,14 @@ public partial class ChronoJumpWindow
                new DialogMessage(Constants.MessageTypes.INFO, Catalog.GetString("Deleted person and all 
his/her tests on this session."));
                SqlitePersonSession.DeletePersonFromSessionAndTests(
                                currentSession.UniqueID.ToString(), currentPerson.UniqueID.ToString());
-               
-               resetAllTreeViews(false, true, true); //fill, resetPersons, fillPersons
+
+               resetAllTreeViews(true, true, true); //fillTests, resetPersons, fillPersons
                bool foundPersons = selectRowTreeView_persons(treeview_persons, 0);
-                       
+
                if(createdStatsWin) {
                        stats_win_fillTreeView_stats(false, true);
                }
-               
+
                //if there are no persons
                if(! foundPersons) {
                        currentPerson = null;


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