[epiphany/wip/exalm/tab-fix: 3/3] window: Don't close the window 2 times when closing last tab




commit 801ca964a66102d277dfac452ed18041f1397989
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Mon Aug 29 17:17:46 2022 +0400

    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


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