mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-11 09:32:12 +01:00
Don't save icons for file and ftp schemes
This commit is contained in:
parent
2dafb61b63
commit
88dba5e5ab
|
@ -42,8 +42,10 @@ void IconProvider::saveIcon(WebView* view)
|
|||
return;
|
||||
}
|
||||
|
||||
if (view->url().scheme() == QL1S("qupzilla"))
|
||||
return;
|
||||
static const char *ignoredSchemes[] = { "qupzilla", "ftp", "file", "view-source" };
|
||||
for (unsigned i = 0; i < sizeof(ignoredSchemes) / sizeof(ignoredSchemes[0]); ++i)
|
||||
if (view->url().scheme() == ignoredSchemes[i])
|
||||
return;
|
||||
|
||||
BufferedIcon item;
|
||||
item.first = view->url();
|
||||
|
|
Loading…
Reference in New Issue
Block a user