Update note in tab_changed_cb()

This commit is contained in:
Gergely Polonkai 2014-06-15 10:02:01 +02:00
parent 8f51a27292
commit 259302a7c2

View File

@ -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, lets 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, lets 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);
}