Remove unneeded self.show()s

This commit is contained in:
Florian Bruhin 2014-02-13 18:47:39 +01:00
parent c40346571a
commit 62f140cf88
2 changed files with 1 additions and 2 deletions

View File

@ -99,6 +99,7 @@ class TabbedBrowser(TabWidget):
tab.urlChanged.connect(self._filter_factory(self.cur_url_changed)) tab.urlChanged.connect(self._filter_factory(self.cur_url_changed))
tab.titleChanged.connect(self._titleChanged_handler) tab.titleChanged.connect(self._titleChanged_handler)
# FIXME sometimes this doesn't load # FIXME sometimes this doesn't load
tab.show()
tab.open_tab.connect(self.tabopen) tab.open_tab.connect(self.tabopen)
tab.openurl(url) tab.openurl(url)
@ -443,7 +444,6 @@ class BrowserTab(QWebView):
self.installEventFilter(self) self.installEventFilter(self)
self.linkClicked.connect(self.link_handler) self.linkClicked.connect(self.link_handler)
# FIXME find some way to hide scrollbars without setScrollBarPolicy # FIXME find some way to hide scrollbars without setScrollBarPolicy
self.show()
def openurl(self, url): def openurl(self, url):
"""Open an URL in the browser. """Open an URL in the browser.

View File

@ -69,7 +69,6 @@ class CrashDialog(QDialog):
hbox.addWidget(btn_restore) hbox.addWidget(btn_restore)
vbox.addLayout(hbox) vbox.addLayout(hbox)
self.show()
def _crash_info(self, pages, cmdhist, exc): def _crash_info(self, pages, cmdhist, exc):
"""Gather crash information to display.""" """Gather crash information to display."""