[chronojump] Editing a runI updates both barplots



commit 2e96824f8495586683ee6817e337baedd9a8e75f
Author: Xavier de Blas <xaviblas gmail com>
Date:   Wed Aug 31 17:59:06 2022 +0200

    Editing a runI updates both barplots

 src/gui/app1/chronojump.cs | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)
---
diff --git a/src/gui/app1/chronojump.cs b/src/gui/app1/chronojump.cs
index fc61f96c8..921f52f6e 100644
--- a/src/gui/app1/chronojump.cs
+++ b/src/gui/app1/chronojump.cs
@@ -6686,7 +6686,8 @@ LogB.Debug("mc finished 5");
                        stats_win_fillTreeView_stats(false, false);
        }
        
-       private void on_edit_selected_run_interval_accepted (object o, EventArgs args) {
+       private void on_edit_selected_run_interval_accepted (object o, EventArgs args)
+       {
                LogB.Information("edit selected run interval accepted");
                
                RunInterval myRun = SqliteRunInterval.SelectRunData( Constants.RunIntervalTable, 
myTreeViewRunsInterval.EventSelectedID, false, false );
@@ -6699,6 +6700,13 @@ LogB.Debug("mc finished 5");
                else
                        myTreeViewRunsInterval.Update(myRun);
 
+               //update the session barplot
+               updateGraphRunsInterval();
+
+               //update the selected runI barplot
+               selectedRunInterval = SqliteRunInterval.SelectRunData (Constants.RunIntervalTable, 
myTreeViewRunsInterval.EventSelectedID, true, false);
+               on_treeview_runs_interval_cursor_changed (new object (), new EventArgs ());
+
                if(createdStatsWin)
                        stats_win_fillTreeView_stats(false, false);
        }


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