1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 02:36:34 +01:00

Don't save icons for file and ftp schemes

This commit is contained in:
David Rosca 2015-10-23 12:57:04 +02:00
parent 2dafb61b63
commit 88dba5e5ab

View File

@ -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();