summaryrefslogtreecommitdiff
path: root/src/session.c
diff options
context:
space:
mode:
authorportix <portix@gmx.net>2010-09-17 13:34:18 +0200
committerportix <portix@gmx.net>2010-09-17 13:34:18 +0200
commitea7000a3f33737ad8b5c10e7160d530c844fe5ef (patch)
tree315092a21a72b50010ba4efc09e2038fd9621c69 /src/session.c
parentb716a657dab6367f1dbc98486711515cfad57955 (diff)
downloaddwb-ea7000a3f33737ad8b5c10e7160d530c844fe5ef.zip
save session on crash
Diffstat (limited to 'src/session.c')
-rw-r--r--src/session.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/session.c b/src/session.c
index 38061b17..ed5a2a0f 100644
--- a/src/session.c
+++ b/src/session.c
@@ -119,7 +119,7 @@ dwb_session_restore(const gchar *name) {
}/*}}}*/
/* dwb_session_save(const gchar *) {{{*/
-void
+gboolean
dwb_session_save(const gchar *name) {
if (!name) {
name = "default";
@@ -156,4 +156,5 @@ dwb_session_save(const gchar *name) {
dwb_util_set_file_content(dwb.files.session, buffer->str);
g_string_free(buffer, true);
dwb_exit();
+ return true;
}/*}}}*/