mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-11 09:32:12 +01:00
[TabWidget] Fix showing empty tab title when adding new tab
Regression from recent commits
This commit is contained in:
parent
64b53baee3
commit
e10126d2a9
|
@ -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);
|
||||
|
|
|
@ -186,7 +186,6 @@ void WebTab::setTabbed(int index)
|
|||
|
||||
void WebTab::setTabTitle(const QString &title)
|
||||
{
|
||||
|
||||
m_tabBar->setTabText(tabIndex(), title);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user