diff options
-rw-r--r-- | src/tab-page.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/tab-page.c b/src/tab-page.c index 4a120d9..1ea02cc 100644 --- a/src/tab-page.c +++ b/src/tab-page.c @@ -299,12 +299,18 @@ mq_tab_page_set_title(MqTabPage *tab_page, const gchar *title) tab_page->title = title; g_signal_handler_block(tab_page->web_view, tab_page->title_handler_id); - } else if (!tab_page->title_init) { - tab_page->title = _("New Tab"); } else { tab_page->title = webkit_web_view_get_title(tab_page->web_view); - g_signal_handler_unblock(tab_page->web_view, - tab_page->title_handler_id); + if (tab_page->title_init) { + g_signal_handler_unblock(tab_page->web_view, + tab_page->title_handler_id); + } else { + if (tab_page->title) { + tab_page->title_init = TRUE; + } else { + tab_page->title = _("New Tab"); + } + } } mq_notebook_update_tab_title( MQ_NOTEBOOK(gtk_widget_get_parent(GTK_WIDGET(tab_page))), |