new tab action opens an empty tab (#374)

This commit is contained in:
jetownfeve21 2020-02-18 08:19:13 +01:00 committed by GitHub
parent 7a54f2a6ac
commit 113fa261eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -28,7 +28,6 @@ TabBar::TabBar(QWidget *parent) :
auto current = this->currentWidget();
auto widget = this->createNewTab(true);
QUITIFNULL(current);
widget->setUrl(current->url());
KiwixApp::instance()->getMainWindow()->getTopWidget()->getSearchBar().setFocus(Qt::MouseFocusReason);
});
connect(app->getAction(KiwixApp::CloseTabAction), &QAction::triggered,