diff options
-rw-r--r-- | src/application.c | 2 | ||||
-rw-r--r-- | src/session.c | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/application.c b/src/application.c index 50b682b7..503290ed 100644 --- a/src/application.c +++ b/src/application.c @@ -314,7 +314,7 @@ application_start(GApplication *app, char **argv) { else { session_restore(opt_restore, session_flags | SESSION_ONLY_MARK); } - if (! restored && g_strv_length(argv) == 1 ) { + if ((! restored && g_strv_length(argv) == 1)) { view_add(NULL, false); dwb_open_startpage(dwb.state.fview); } diff --git a/src/session.c b/src/session.c index 6474c3f9..c008495c 100644 --- a/src/session.c +++ b/src/session.c @@ -174,6 +174,7 @@ session_restore(char *name, int flags) { WebKitWebBackForwardList *bf_list = NULL; int last = 1; char *end; + gboolean ret = false; int locked_state = 0; if (name == NULL) { _session_name = g_strdup("default"); @@ -236,10 +237,11 @@ session_restore(char *name, int flags) { } dwb_focus(dwb.state.fview); g_free(uri); + ret = true; clean: g_free(group); - return true; + return ret; }/*}}}*/ /* session_save(const char *) {{{*/ |