36 |
36 |
37 def __browserIconChanged(self): |
37 def __browserIconChanged(self): |
38 """ |
38 """ |
39 Private slot to set the icon. |
39 Private slot to set the icon. |
40 """ |
40 """ |
41 url = QUrl() |
41 try: |
42 if self.__browser: |
42 url = QUrl() |
43 url = self.__browser.url() |
43 if self.__browser: |
44 self.setPixmap(Helpviewer.HelpWindow.HelpWindow.icon(url).pixmap(16, 16)) |
44 url = self.__browser.url() |
|
45 self.setPixmap(Helpviewer.HelpWindow.HelpWindow.icon(url).pixmap(16, 16)) |
|
46 except RuntimeError: |
|
47 pass |
45 |
48 |
46 def setBrowser(self, browser): |
49 def setBrowser(self, browser): |
47 """ |
50 """ |
48 Public method to set the browser connection. |
51 Public method to set the browser connection. |
49 |
52 |