summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/notebook.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/notebook.c b/src/notebook.c
index b4e2864..0edd0d0 100644
--- a/src/notebook.c
+++ b/src/notebook.c
@@ -432,6 +432,10 @@ mq_notebook_remove_page(MqNotebook *notebook, MqTabPage *page)
mq_tree_position(notebook->found_node));
g_free(notebook->found_node);
+
+ if (mq_tree_size(MQ_TREE(notebook->tree)) == 1) {
+ mq_notebook_insert_top(notebook, NULL, TRUE);
+ }
}
gint