diff options
author | portix <portix@gmx.net> | 2012-02-21 10:17:47 +0100 |
---|---|---|
committer | portix <portix@gmx.net> | 2012-02-21 10:17:47 +0100 |
commit | 8434b74a7711d98b4f7b0befc8b32826ad90d40e (patch) | |
tree | 5a2084e06e56924d497248394b072e157792f13f /src/session.c | |
parent | d1cf1bb181a02f1686cfccf8d25a8da6bbbbee5c (diff) | |
download | dwb-8434b74a7711d98b4f7b0befc8b32826ad90d40e.zip |
Always save the session if save_session is called explicitly
--HG--
branch : application
Diffstat (limited to 'src/session.c')
-rw-r--r-- | src/session.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/session.c b/src/session.c index 9510129a..a8d4189a 100644 --- a/src/session.c +++ b/src/session.c @@ -180,7 +180,7 @@ session_restore(char *name, gboolean force) { if (is_marked && !force) { fprintf(stderr, "Warning: Session '%s' will not be restored.\n", name); fprintf(stderr, "There is already a restored session open with name '%s'.\n", name); - fputs("To force opening a saved session use -f or --force\n", stderr); + fputs("To force opening a saved session use -f or --force.\n", stderr); return false; } _session_name = name; @@ -240,6 +240,8 @@ session_save(const char *name, gboolean force) { if (!name) { if (_session_name) name = _session_name; + else if (force) + name = "default"; else return false; } |