This commit is contained in:
Florian Bruhin 2017-02-06 13:42:31 +01:00
parent dd9d6264c7
commit 1209724f83
3 changed files with 7 additions and 6 deletions

View File

@ -148,7 +148,7 @@
|<<storage-offline-storage-database,offline-storage-database>>|Whether support for the HTML 5 offline storage feature is enabled.
|<<storage-offline-web-application-storage,offline-web-application-storage>>|Whether support for the HTML 5 web application cache feature is enabled.
|<<storage-local-storage,local-storage>>|Whether support for the HTML 5 local storage feature is enabled.
|<<storage-cache-size,cache-size>>|Size of the HTTP network cache.
|<<storage-cache-size,cache-size>>|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.

View File

@ -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):

View File

@ -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
)),