--- a/WebBrowser/WebBrowserTabWidget.py Tue Mar 29 16:34:32 2016 +0200 +++ b/WebBrowser/WebBrowserTabWidget.py Tue Mar 29 16:49:54 2016 +0200 @@ -301,13 +301,11 @@ """ self.newBrowser() - # TODO: get rid of requestData - def newBrowser(self, link=None, requestData=None, position=-1): + def newBrowser(self, link=None, position=-1): """ Public method to create a new web browser tab. @param link link to be shown (string or QUrl) - @param requestData page load request data (LoadRequest) @keyparam position position to create the new tab at or -1 to add it to the end (integer) """ @@ -366,7 +364,7 @@ self.__closeButton.setEnabled(True) self.__navigationButton.setEnabled(True) - if not linkName and not requestData: + if not linkName: if Preferences.getWebBrowser("StartupBehavior") == 0: linkName = Preferences.getWebBrowser("HomePage") elif Preferences.getWebBrowser("StartupBehavior") == 1: @@ -382,22 +380,19 @@ index, self.__elide(browser.documentTitle().replace("&", "&&"))) self.setTabToolTip(index, browser.documentTitle()) -## elif requestData: -## browser.load(requestData) - def newBrowserAfter(self, browser, link=None, requestData=None): + def newBrowserAfter(self, browser, link=None): """ Public method to create a new web browser tab after a given one. @param browser reference to the browser to add after (WebBrowserView) @param link link to be shown (string or QUrl) - @param requestData page load request data (LoadRequest) """ if browser: position = self.indexOf(browser) + 1 else: position = -1 - self.newBrowser(link, requestData, position) + self.newBrowser(link, position) def __showNavigationMenu(self): """