mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 10:46:35 +01:00
Only set the unloaded tab color if the url is not empty
This commit is contained in:
parent
7882cbcc98
commit
18f65a66f6
@ -269,7 +269,9 @@ void WebTab::restoreTab(const WebTab::SavedTab &tab)
|
||||
|
||||
m_view->tabWidget()->setTabIcon(index, tab.icon);
|
||||
m_view->tabWidget()->setTabText(index, tab.title);
|
||||
m_view->tabWidget()->tabBar()->setTabTextColor(index, QColor(100, 100, 100));
|
||||
if (! tab.url.isEmpty()) {
|
||||
m_view->tabWidget()->tabBar()->setTabTextColor(index, QColor(100, 100, 100));
|
||||
}
|
||||
m_view->tabWidget()->setTabToolTip(index, tab.title);
|
||||
m_locationBar.data()->showUrl(tab.url);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user