1
mirror of https://invent.kde.org/network/falkon.git synced 2024-09-21 17:52:10 +02:00

[TabWidget] Fix showing empty tab title when adding new tab

Regression from recent commits
This commit is contained in:
nowrep 2014-03-22 23:59:38 +01:00
parent 64b53baee3
commit e10126d2a9
2 changed files with 4 additions and 2 deletions

View File

@ -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);

View File

@ -186,7 +186,6 @@ void WebTab::setTabbed(int index)
void WebTab::setTabTitle(const QString &title)
{
m_tabBar->setTabText(tabIndex(), title);
}