[epiphany/gnome-3-36] Only create a new-window if the session is not empty



commit 28a902168bdfd6398212fd46e71d6e1545f60582
Author: Jan-Michael Brummer <jan brummer tabos org>
Date:   Mon Apr 20 11:39:27 2020 +0000

    Only create a new-window if the session is not empty
    
    Fixes: https://gitlab.gnome.org/GNOME/epiphany/-/issues/1152
    
    
    (cherry picked from commit bd3316e97db493fd0f6de0ec27432c375e6b3dec)

 src/ephy-shell.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/ephy-shell.c b/src/ephy-shell.c
index 95e4e5b94..e42417b18 100644
--- a/src/ephy-shell.c
+++ b/src/ephy-shell.c
@@ -124,7 +124,7 @@ ephy_shell_startup_continue (EphyShell               *shell,
     g_assert (session != NULL);
     ephy_session_load (session, (const char *)ctx->session_filename,
                        ctx->user_time, NULL, NULL, NULL);
-  } else if (new_window_option) {
+  } else if (new_window_option && shell->remote_startup_context) {
     char *homepage_url = g_settings_get_string (EPHY_SETTINGS_MAIN, EPHY_PREFS_HOMEPAGE_URL);
     const char *default_uris[] = { homepage_url, NULL };
     const char **uris = NULL;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]