diff --git a/doc/help/settings.asciidoc b/doc/help/settings.asciidoc index 0e815b0e0..f365df7b3 100644 --- a/doc/help/settings.asciidoc +++ b/doc/help/settings.asciidoc @@ -148,7 +148,7 @@ |<>|Whether support for the HTML 5 offline storage feature is enabled. |<>|Whether support for the HTML 5 web application cache feature is enabled. |<>|Whether support for the HTML 5 local storage feature is enabled. -|<>|Size of the HTTP network cache. +|<>|Size of the HTTP network cache. Empty to use the default value. |============== .Quick reference for section ``content'' @@ -1383,9 +1383,9 @@ Default: +pass:[true]+ [[storage-cache-size]] === cache-size -Size of the HTTP network cache. +Size of the HTTP network cache. Empty to use the default value. -Default: +pass:[52428800]+ +Default: empty == content Loaded plugins/scripts and allowed actions. diff --git a/qutebrowser/browser/commands.py b/qutebrowser/browser/commands.py index f07f58ee7..b01313cc0 100644 --- a/qutebrowser/browser/commands.py +++ b/qutebrowser/browser/commands.py @@ -351,11 +351,11 @@ class CommandDispatcher: def _print_preview(self, tab): """Show a print preview.""" - tab.printing.check_preview_support() def print_callback(ok): if not ok: message.error("Printing failed!") + tab.printing.check_preview_support() diag = QPrintPreviewDialog() diag.setAttribute(Qt.WA_DeleteOnClose) diag.setWindowFlags(diag.windowFlags() | Qt.WindowMaximizeButtonHint | @@ -365,8 +365,8 @@ class CommandDispatcher: diag.exec_() def _print_pdf(self, tab, filename): - tab.printing.check_pdf_support() """Print to the given PDF file.""" + tab.printing.check_pdf_support() filename = os.path.expanduser(filename) directory = os.path.dirname(filename) if directory and not os.path.exists(directory): diff --git a/qutebrowser/config/configdata.py b/qutebrowser/config/configdata.py index b99e97e0c..6f3c08575 100644 --- a/qutebrowser/config/configdata.py +++ b/qutebrowser/config/configdata.py @@ -797,7 +797,8 @@ def data(readonly=False): ('cache-size', SettingValue(typ.Int(none_ok=True, minval=0, maxval=MAXVALS['int64']), ''), - "Size of the HTTP network cache. Empty to use the default value."), + "Size of the HTTP network cache. Empty to use the default " + "value."), readonly=readonly )),