diff --git a/qutebrowser/app.py b/qutebrowser/app.py index 31d1da1ac..3984eddc4 100644 --- a/qutebrowser/app.py +++ b/qutebrowser/app.py @@ -8,8 +8,9 @@ def main(): mw = MainWindow() cp = CommandParser() - mw.status.cmd.editingFinished.connect(lambda: cp.parse(mw.status.cmd.text())) + mw.status.cmd.returnPressed.connect(lambda: cp.parse(mw.status.cmd.text())) cp.openurl.connect(mw.tabs.openurl) + cp.tabopen.connect(mw.tabs.tabopen) mw.show() sys.exit(app.exec_()) diff --git a/qutebrowser/browser.py b/qutebrowser/browser.py index cf433d32a..f6d8ba7ba 100644 --- a/qutebrowser/browser.py +++ b/qutebrowser/browser.py @@ -15,6 +15,7 @@ class TabbedBrowser(TabWidget): tab.openurl(url) self.tabs.append(tab) self.addTab(tab, url) + self.setCurrentWidget(tab) @pyqtSlot(str) def openurl(self, url):