--- a/Helpviewer/HelpWindow.py Sat Oct 19 12:28:12 2013 +0200 +++ b/Helpviewer/HelpWindow.py Sat Oct 19 13:03:39 2013 +0200 @@ -351,7 +351,7 @@ os.makedirs(webDatabaseDir) settings.setOfflineStoragePath(webDatabaseDir) settings.setOfflineStorageDefaultQuota( - Preferences.getHelp("OfflineStorageDatabaseQuota") * \ + Preferences.getHelp("OfflineStorageDatabaseQuota") * 1024 * 1024) if hasattr(QWebSettings, "OfflineWebApplicationCacheEnabled"): @@ -364,7 +364,7 @@ os.makedirs(appCacheDir) settings.setOfflineWebApplicationCachePath(appCacheDir) settings.setOfflineWebApplicationCacheQuota( - Preferences.getHelp("OfflineWebApplicationCacheQuota") * \ + Preferences.getHelp("OfflineWebApplicationCacheQuota") * 1024 * 1024) if hasattr(QWebSettings, "LocalStorageEnabled"): @@ -3567,8 +3567,8 @@ @param txt contents of the search (string) """ self.virustotalSearchAct.setEnabled( - txt != "" and \ - Preferences.getHelp("VirusTotalEnabled") and \ + txt != "" and + Preferences.getHelp("VirusTotalEnabled") and Preferences.getHelp("VirusTotalServiceKey") != "") def __virusTotalSearch(self):