Skip to content
Browse files
Remove BrowserPage.chooseFile
Seems like QtWebKit comes with a default implementation of that.
  • Loading branch information
The-Compiler committed Sep 7, 2016
1 parent 6831177 commit bac7a6eaf29418327b88b831113a75c55000c875
Showing with 0 additions and 10 deletions.
  1. +0 −10 qutebrowser/browser/webkit/
@@ -496,16 +496,6 @@ def javaScriptConsoleMessage(self, msg, line, source):

def chooseFile(self, _frame, suggested_file):
"""Override QWebPage's chooseFile to be able to chose a file to upload.
frame: The parent QWebFrame.
suggested_file: A suggested filename.
filename, _ = QFileDialog.getOpenFileName(None, None, suggested_file)
return filename

def acceptNavigationRequest(self,
_frame: QWebFrame,
request: QNetworkRequest,

0 comments on commit bac7a6e

Please sign in to comment.