diff options
author | Claudio Saavedra <csaavedra@igalia.com> | 2012-03-08 00:57:24 +0800 |
---|---|---|
committer | Claudio Saavedra <csaavedra@igalia.com> | 2012-03-08 05:17:54 +0800 |
commit | 161c78698fcce7a6cad9a562691dd51ec087265c (patch) | |
tree | 35a0511b6b885011b7aed0e32f8ae2d069af1f1c /src/ephy-history-window.c | |
parent | 7cc9e4a8e9d7a9ae063005e27bca383687b3084e (diff) | |
download | gsoc2013-epiphany-161c78698fcce7a6cad9a562691dd51ec087265c.tar gsoc2013-epiphany-161c78698fcce7a6cad9a562691dd51ec087265c.tar.gz gsoc2013-epiphany-161c78698fcce7a6cad9a562691dd51ec087265c.tar.bz2 gsoc2013-epiphany-161c78698fcce7a6cad9a562691dd51ec087265c.tar.lz gsoc2013-epiphany-161c78698fcce7a6cad9a562691dd51ec087265c.tar.xz gsoc2013-epiphany-161c78698fcce7a6cad9a562691dd51ec087265c.tar.zst gsoc2013-epiphany-161c78698fcce7a6cad9a562691dd51ec087265c.zip |
ephy-hosts-view: ensure "all hosts" is selected by default
If no host can be selected, always select the "all hosts" row.
https://bugzilla.gnome.org/show_bug.cgi?id=671575
Diffstat (limited to 'src/ephy-history-window.c')
-rw-r--r-- | src/ephy-history-window.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/ephy-history-window.c b/src/ephy-history-window.c index b4036228f..f8369ba23 100644 --- a/src/ephy-history-window.c +++ b/src/ephy-history-window.c @@ -1039,11 +1039,9 @@ on_get_hosts_cb (gpointer service, selected_host = get_selected_host (window); ephy_hosts_store_clear (EPHY_HOSTS_STORE (window->priv->hosts_store)); ephy_hosts_store_add_hosts (window->priv->hosts_store, hosts); - if (selected_host) { - ephy_hosts_view_select_host (EPHY_HOSTS_VIEW (window->priv->hosts_view), - selected_host); - ephy_history_host_free (selected_host); - } + ephy_hosts_view_select_host (EPHY_HOSTS_VIEW (window->priv->hosts_view), + selected_host); + ephy_history_host_free (selected_host); out: g_list_free_full (hosts, (GDestroyNotify)ephy_history_host_free); } |