1 Commits

Author SHA1 Message Date
e55593e173 Only update saved_data if the chart could be saved 2015-06-06 00:25:44 +02:00
3 changed files with 3 additions and 29 deletions

View File

@@ -1,13 +0,0 @@
namespace Ag {
class HeaderBar: Gtk.HeaderBar {
public void clear()
{
custom_title = null;
foreach (Gtk.Widget w in get_children()) {
w.hide();
}
}
}
}

View File

@@ -1120,12 +1120,12 @@ ag_window_save_action(GSimpleAction *action,
_("Unable to save: %s"), _("Unable to save: %s"),
err->message err->message
); );
} } else {
ag_db_chart_save_unref(priv->saved_data); ag_db_chart_save_unref(priv->saved_data);
priv->saved_data = save_data; priv->saved_data = save_data;
} }
} }
}
static void static void
ag_window_close_action(GSimpleAction *action, ag_window_close_action(GSimpleAction *action,

View File

@@ -1,13 +0,0 @@
namespace Ag {
public class HeaderBar : Gtk.HeaderBar {
public void clear()
{
custom_title = null;
foreach (Gtk.Widget w in get_children()) {
w.hide();
}
}
}
}