From ed8fac8acb8cd562f720c5f9cbcb19c33b88b570 Mon Sep 17 00:00:00 2001 From: Alexander Mikhaylenko <alexm@gnome.org> Date: Mon, 29 Aug 2022 17:17:46 +0400 Subject: [PATCH] window: Don't close the window 2 times when closing last tab We already do it in ephy_window_close_tab(). Part-of: <https://gitlab.gnome.org/GNOME/epiphany/-/merge_requests/1188> --- src/ephy-window.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/ephy-window.c b/src/ephy-window.c index b9939123b..f557397f0 100644 --- a/src/ephy-window.c +++ b/src/ephy-window.c @@ -2722,14 +2722,6 @@ tab_view_page_detached_cb (HdyTabView *tab_view, g_signal_handlers_disconnect_by_func (ephy_embed_get_web_view (EPHY_EMBED (content)), G_CALLBACK (download_only_load_cb), window); - - if (ephy_tab_view_get_n_pages (window->tab_view) == 0) { - EphyShell *shell = ephy_shell_get_default (); - GList *windows = gtk_application_get_windows (GTK_APPLICATION (shell)); - - if (g_list_length (windows) > 1) - gtk_window_close (GTK_WINDOW (window)); - } } static void -- GitLab