diff options
author | P. J. McDermott <pj@pehjota.net> | 2018-10-03 19:14:19 (EDT) |
---|---|---|
committer | P. J. McDermott <pj@pehjota.net> | 2018-10-03 19:17:49 (EDT) |
commit | f446747cb92c3196be534e4dee1fdc13a9aba26e (patch) | |
tree | 17c88d1b0b3f7fce8d382d29fd1eb02acfa069ad | |
parent | 622852b580a04c419cfd3df9461b344f027b8eb2 (diff) | |
download | marquee-f446747cb92c3196be534e4dee1fdc13a9aba26e.zip marquee-f446747cb92c3196be534e4dee1fdc13a9aba26e.tar.gz marquee-f446747cb92c3196be534e4dee1fdc13a9aba26e.tar.bz2 |
mq_tab_page_set_title(): Restore "New Tab" if no title was set
Otherwise, renaming a new tab and restoring the normal title leaves the
custom title in the window title.
-rw-r--r-- | src/tab-page.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/tab-page.c b/src/tab-page.c index afecdc2..4a120d9 100644 --- a/src/tab-page.c +++ b/src/tab-page.c @@ -300,8 +300,7 @@ mq_tab_page_set_title(MqTabPage *tab_page, const gchar *title) g_signal_handler_block(tab_page->web_view, tab_page->title_handler_id); } else if (!tab_page->title_init) { - /* Don't clobber "New Tab". */ - return; + 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, |