WebBrowser/WebBrowserWindow.py

changeset 5341
d874aeb629dc
parent 5224
7454861e4106
child 5389
9b1c800daff3
equal deleted inserted replaced
5340:abbb6f750607 5341:d874aeb629dc
2962 2962
2963 @param url URL to be shown (QUrl) 2963 @param url URL to be shown (QUrl)
2964 """ 2964 """
2965 if not self.__activating: 2965 if not self.__activating:
2966 self.__activating = True 2966 self.__activating = True
2967 self.currentBrowser().setUrl(url) 2967 cb = self.currentBrowser()
2968 if cb is None:
2969 self.newTab(url)
2970 else:
2971 cb.setUrl(url)
2968 self.__activating = False 2972 self.__activating = False
2969 2973
2970 def __activateCurrentBrowser(self): 2974 def __activateCurrentBrowser(self):
2971 """ 2975 """
2972 Private slot to activate the current browser. 2976 Private slot to activate the current browser.

eric ide

mercurial