summaryrefslogtreecommitdiff
path: root/src/ephy-session.c
diff options
context:
space:
mode:
authorJan-Michael Brummer <jan.brummer@tabos.org>2020-04-29 08:25:55 +0200
committerMichael Catanzaro <mcatanzaro@gnome.org>2020-04-29 17:11:48 +0000
commit555a742751458a42bb58a07dc19fecb2fe125a96 (patch)
treee9a2eba070d6d0484c69524cf44ce8b920eb8ed2 /src/ephy-session.c
parentb953881cb237e7f24dc133574cdff3261396168e (diff)
downloadepiphany-555a742751458a42bb58a07dc19fecb2fe125a96.tar.gz
Allow unlimited reopen of closed tabs
Fixes: https://gitlab.gnome.org/GNOME/epiphany/-/issues/991
Diffstat (limited to 'src/ephy-session.c')
-rw-r--r--src/ephy-session.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/ephy-session.c b/src/ephy-session.c
index 432ac6866..988294ec2 100644
--- a/src/ephy-session.c
+++ b/src/ephy-session.c
@@ -68,7 +68,6 @@ struct _EphySession {
};
#define SESSION_STATE "type:session_state"
-#define MAX_CLOSED_TABS 10
enum {
PROP_0,
@@ -306,10 +305,6 @@ ephy_session_tab_closed (EphySession *session,
return;
}
- if (g_queue_get_length (session->closed_tabs) == MAX_CLOSED_TABS) {
- closed_tab_free (g_queue_pop_tail (session->closed_tabs));
- }
-
tab = closed_tab_new (view, position,
ephy_session_ref_or_create_notebook_tracker (session, notebook));
g_queue_push_head (session->closed_tabs, tab);