diff options
author | Jan-Michael Brummer <jan.brummer@tabos.org> | 2020-07-10 22:17:08 +0200 |
---|---|---|
committer | Jan-Michael Brummer <jan.brummer@tabos.org> | 2020-07-11 10:26:41 +0200 |
commit | bd291c90a0b8f7122eaade1367d0256b6f07f8eb (patch) | |
tree | 24dbb10aa5e541373a198c06752b9e9b6435bb39 /src | |
parent | 44a05555e4376b534819fda7b6eb4f1fce8c85cb (diff) | |
download | epiphany-bd291c90a0b8f7122eaade1367d0256b6f07f8eb.tar.gz |
Fix tab open order after tab close
Reset internal last openend embed on tab close to ensure that new append tab position
is recalculated.
Fixes: https://gitlab.gnome.org/GNOME/epiphany/-/issues/1240
Diffstat (limited to 'src')
-rw-r--r-- | src/ephy-window.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ephy-window.c b/src/ephy-window.c index bccc5c4ff..975c03fb3 100644 --- a/src/ephy-window.c +++ b/src/ephy-window.c @@ -2935,6 +2935,10 @@ ephy_window_close_tab (EphyWindow *window, g_object_set_data (G_OBJECT (tab), "ephy-window-close-tab-closed", GINT_TO_POINTER (TRUE)); gtk_widget_destroy (GTK_WIDGET (tab)); + if (window->last_opened_embed) + g_clear_weak_pointer ((gpointer *)&window->last_opened_embed); + window->last_opened_embed = NULL; + /* If that was the last tab, destroy the window. * * Beware: window->closing could be true now, after destroying the |