1
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:
David Rosca 2015-10-23 12:57:04 +02:00
parent 2dafb61b63
commit 88dba5e5ab

View File

@ -42,7 +42,9 @@ void IconProvider::saveIcon(WebView* view)
return;
}
if (view->url().scheme() == QL1S("qupzilla"))
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;