diff options
-rw-r--r-- | src/window.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/window.c b/src/window.c index 32105a3..b64e1b1 100644 --- a/src/window.c +++ b/src/window.c @@ -42,10 +42,10 @@ switch_page_cb(GtkNotebook __attribute__((unused)) *notebook, GtkWidget __attribute__((unused)) *page, guint page_num, MqWindow *window) { - window->current_tab = page_num; + window->current_tab = ++page_num; set_title(window, mq_tab_get_title(mq_tab_seek(window->root_tab, - page_num + 1))); + page_num))); } static void |