summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/tab-chrome.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tab-chrome.c b/src/tab-chrome.c
index 1785001..dc91c9e 100644
--- a/src/tab-chrome.c
+++ b/src/tab-chrome.c
@@ -414,7 +414,9 @@ navigation_toolbar_new(MqTabChrome *chrome, gchar *uri)
/* URI bar */
uri_tool_item = gtk_tool_item_new();
chrome->uri_entry = gtk_entry_new();
- gtk_entry_set_text(GTK_ENTRY(chrome->uri_entry), uri);
+ if (uri) {
+ gtk_entry_set_text(GTK_ENTRY(chrome->uri_entry), uri);
+ }
gtk_entry_set_placeholder_text(GTK_ENTRY(chrome->uri_entry),
"URI...");
gtk_entry_set_icon_from_icon_name(GTK_ENTRY(chrome->uri_entry),