From a90a955613e18a988e08891a9da0ac2b3680229f Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Wed, 6 Mar 2019 22:18:50 +0100 Subject: Don't set empty tab title from history (#292) Even though a tab was looked up in the history to re-use its title without loading it, the title may be empty. In that case don't set the empty saved title which would override the URL being shown as a fallback. --- core/tab.vala | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/tab.vala b/core/tab.vala index 815c5be5..7e9f4137 100644 --- a/core/tab.vala +++ b/core/tab.vala @@ -104,7 +104,9 @@ namespace Midori { var history = HistoryDatabase.get_default (web_context.is_ephemeral ()); var item = yield history.lookup (display_uri); if (item != null) { - display_title = item.title; + if (item.title != null && item.title != "") { + display_title = item.title; + } this.item = item; } } catch (DatabaseError error) { -- cgit v1.2.1