diff --git a/src/lib/webview/tabwidget.cpp b/src/lib/webview/tabwidget.cpp index 12670f7fc..5536d514f 100644 --- a/src/lib/webview/tabwidget.cpp +++ b/src/lib/webview/tabwidget.cpp @@ -391,7 +391,10 @@ int TabWidget::addView(const LoadRequest &req, const QString &title, const Qz::N int index = insertTab(position == -1 ? count() : position, webTab, QString(), pinned); webTab->setTabbed(index); - webTab->setTabTitle(title); + + if (!title.isEmpty()) { + webTab->setTabTitle(title); + } if (openFlags & Qz::NT_SelectedTab) { setCurrentIndex(index); diff --git a/src/lib/webview/webtab.cpp b/src/lib/webview/webtab.cpp index 15d38b69a..a54a2c47d 100644 --- a/src/lib/webview/webtab.cpp +++ b/src/lib/webview/webtab.cpp @@ -186,7 +186,6 @@ void WebTab::setTabbed(int index) void WebTab::setTabTitle(const QString &title) { - m_tabBar->setTabText(tabIndex(), title); }