delete old save file when changing the session save file

This commit is contained in:
Dana Jansens 2003-10-15 04:02:38 +00:00
parent 740c5b2a20
commit 9b0f5fcde7

View file

@ -318,6 +318,9 @@ static gboolean session_save()
GList *it;
gboolean success = TRUE;
if (save_file)
unlink(save_file)
/* this algo is from metacity */
filename = g_strdup_printf("%d-%d-%u.obs",
(gint) time(NULL),