mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-25 05:27:00 +03:00
Check if URL is already added to bookmark
This commit is contained in:
parent
35115ed606
commit
e9f2c3a9bf
@ -308,6 +308,12 @@ void atari_hotlist_add_page( const char * url, const char * title )
|
||||
if (nsurl_create(url, &nsurl) != NSERROR_OK)
|
||||
return;
|
||||
|
||||
if (hotlist_has_url(nsurl)) {
|
||||
LOG(("URL already added as Bookmark"));
|
||||
nsurl_unref(nsurl);
|
||||
return;
|
||||
}
|
||||
|
||||
/* doesn't look nice:
|
||||
if( hl.tv->click.x >= 0 && hl.tv->click.y >= 0 ){
|
||||
hotlist_add_entry( nsurl, title, true, hl.tv->click.y );
|
||||
|
Loading…
Reference in New Issue
Block a user