diff options
author | Christian Dywan <christian@twotoasts.de> | 2019-03-06 22:18:50 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-06 22:18:50 +0100 |
commit | a90a955613e18a988e08891a9da0ac2b3680229f (patch) | |
tree | d84029ff34311c5780eba4912ae2c9e47b326378 | |
parent | e515d2ca80c54f1d0075c64e8a045a5caf8b36ef (diff) | |
download | midori-git-a90a955613e18a988e08891a9da0ac2b3680229f.tar.gz |
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.
-rw-r--r-- | core/tab.vala | 4 |
1 files changed, 3 insertions, 1 deletions
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) { |