Remove erroneous title check in set_uri

The condition was written this way due to the now gone legacy
workaround, the title shouldn't be checked at all.
This commit is contained in:
Christian Dywan 2011-06-17 11:13:41 +02:00
parent b8e5b77609
commit 783bed774a

View file

@ -4744,9 +4744,7 @@ midori_view_reload (MidoriView* view,
{ {
g_return_if_fail (MIDORI_IS_VIEW (view)); g_return_if_fail (MIDORI_IS_VIEW (view));
if (view->title) if (!(view->uri && *view->uri && strncmp (view->uri, "about:", 6)))
webkit_web_view_open (WEBKIT_WEB_VIEW (view->web_view), view->uri);
else if (!(view->uri && *view->uri && strncmp (view->uri, "about:", 6)))
{ {
gchar* uri = g_strdup (view->uri); gchar* uri = g_strdup (view->uri);
midori_view_set_uri (view, uri); midori_view_set_uri (view, uri);