Fix multiple file QWebPage extension.

We accidentally broke that in 4c78b611eb.
This commit is contained in:
Florian Bruhin 2014-10-26 22:07:15 +01:00
parent 6f81a5094a
commit ae2284f4aa

View File

@ -143,8 +143,8 @@ class BrowserPage(QWebPage):
True on success, the superclass return value on failure.
"""
suggested_file = ""
if opt.suggestedFileNames:
suggested_file = opt.suggestedFileNames[0]
if info.suggestedFileNames:
suggested_file = info.suggestedFileNames[0]
files.fileNames, _ = QFileDialog.getOpenFileNames(None, None,
suggested_file)
return True