From 8c7a7aaf201e4ca3cd31adebaa456607f5967e56 Mon Sep 17 00:00:00 2001 From: binix Date: Thu, 8 Jan 2015 17:09:55 +0000 Subject: [PATCH] Stop the icon database from being created when private-browsing is set to true --- qutebrowser/config/websettings.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/qutebrowser/config/websettings.py b/qutebrowser/config/websettings.py index 131025bea..2754aafb4 100644 --- a/qutebrowser/config/websettings.py +++ b/qutebrowser/config/websettings.py @@ -195,7 +195,10 @@ def _set_setting(typ, arg, default=UNSET, value=UNSET): def init(): """Initialize the global QWebSettings.""" cachedir = standarddir.get(QStandardPaths.CacheLocation) - QWebSettings.setIconDatabasePath(cachedir) + if config.get('general', 'private-browsing'): + QWebSettings.setIconDatabasePath('') + else: + QWebSettings.setIconDatabasePath(cachedir) QWebSettings.setOfflineWebApplicationCachePath( os.path.join(cachedir, 'application-cache')) datadir = standarddir.get(QStandardPaths.DataLocation)