UI/UserInterface.py

branch
5_1_x
changeset 1194
9a54fec8559d
parent 1113
95d837803666
child 1218
825a24cf43f7
--- 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):
         """

eric ide

mercurial