From 259302a7c2628aae505ffcffedc419e30cefa5f3 Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Sun, 15 Jun 2014 10:02:01 +0200 Subject: [PATCH] Update note in tab_changed_cb() --- src/ag-window.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/ag-window.c b/src/ag-window.c index 90c4716..3343691 100644 --- a/src/ag-window.c +++ b/src/ag-window.c @@ -371,8 +371,12 @@ tab_changed_cb(GtkStack *stack, GParamSpec *pspec, AgWindow *window) gtk_widget_set_size_request(active_tab, 600, 600); } - // If we are coming from the Edit tab, let’s assume the chart data has changed - // Note that priv->current_tab is actually the previously selected tab, not the real active one! + // If we are coming from the Edit tab, let’s assume the chart data has + // changed. This is a bad idea, though, it should be checked instead! + // (TODO) + + // Note that priv->current_tab is actually the previously selected tab, not + // the real active one! if (window->priv->current_tab == window->priv->tab_edit) { recalculate_chart(window); }