--- a/UI/UserInterface.py Tue Jul 19 19:26:09 2011 +0200 +++ b/UI/UserInterface.py Sun Jul 24 15:21:45 2011 +0200 @@ -4187,13 +4187,11 @@ """ self.__assistant(version = 4) - def __startWebBrowser(self, home = ""): + def __startWebBrowser(self): """ Private slot to start the eric5 web browser. - - @param home full pathname of a file to display (string) - """ - self.launchHelpViewer(home) + """ + self.launchHelpViewer("") def __customViewer(self, home = None): """ @@ -4868,11 +4866,17 @@ self.launchHelpViewer("", searchWord = searchWord) - def __webBrowser(self): + def __webBrowser(self, home=""): """ Private slot to start the eric5 web browser. - """ - self.launchHelpViewer("") + + @param home full pathname of a file to display (string) + """ + started = QDesktopServices.openUrl(QUrl(home)) + if not started: + E5MessageBox.critical(self, + self.trUtf8('Open Browser'), + self.trUtf8('Could not start a web browser')) def showPreferences(self, pageName = None): """