From a4d3cabd343752d5b84f27a5f3beda5e80d22141 Mon Sep 17 00:00:00 2001 From: Chris Young Date: Sun, 26 Jul 2009 18:47:15 +0000 Subject: Allow the user to disable URL suggestion. svn path=/trunk/netsurf/; revision=8806 --- amiga/stringview/urlhistory.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'amiga/stringview') diff --git a/amiga/stringview/urlhistory.c b/amiga/stringview/urlhistory.c index 264895677..2f0f72366 100644 --- a/amiga/stringview/urlhistory.c +++ b/amiga/stringview/urlhistory.c @@ -27,6 +27,7 @@ #include "urlhistory.h" #include "content/urldb.h" +#include "desktop/options.h" struct List PageList; @@ -100,6 +101,8 @@ struct Node * URLHistory_FindPage( const char *urlString ) void URLHistory_AddPage( const char * urlString ) { + if(!option_url_suggestion) return; + // Only search if length > 0 if( strlen( urlString ) > 0 ) { -- cgit v1.2.3