[epiphany] ephy-shell: Do not try to resume the session in application mode
- From: Carlos Garcia Campos <carlosgc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] ephy-shell: Do not try to resume the session in application mode
- Date: Fri, 19 Sep 2014 12:38:21 +0000 (UTC)
commit 57d502e2a8fe428957b42be0a79a4977cbc739a7
Author: Carlos Garcia Campos <cgarcia igalia com>
Date: Thu Sep 18 18:46:53 2014 +0200
ephy-shell: Do not try to resume the session in application mode
https://bugzilla.gnome.org/show_bug.cgi?id=736922
src/ephy-shell.c | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/src/ephy-shell.c b/src/ephy-shell.c
index b059108..374510a 100644
--- a/src/ephy-shell.c
+++ b/src/ephy-shell.c
@@ -319,9 +319,12 @@ ephy_shell_activate (GApplication *application)
* can be invalidated by another remote instance.
*/
if (priv->remote_startup_context == NULL) {
- ephy_session_resume (ephy_shell_get_session (shell),
- priv->local_startup_context->user_time,
- NULL, session_load_cb, priv->local_startup_context);
+ if (ephy_embed_shell_get_mode (EPHY_EMBED_SHELL (shell)) != EPHY_EMBED_SHELL_MODE_APPLICATION) {
+ ephy_session_resume (ephy_shell_get_session (shell),
+ priv->local_startup_context->user_time,
+ NULL, session_load_cb, priv->local_startup_context);
+ } else
+ ephy_shell_startup_continue (shell, priv->local_startup_context);
} else {
ephy_shell_startup_continue (shell, priv->remote_startup_context);
g_clear_pointer (&priv->remote_startup_context, ephy_shell_startup_context_free);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]