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




commit c47c1ec640b8814671b50bf776d412a9e8894355
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().

 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]