Merge pull request #952 from char101/mark-unloaded-tab-color

Mark unloaded tab color
remotes/origin/falkon
David Rosca 13 years ago
commit fb6114eb5b
  1. 4
      src/lib/webview/webtab.cpp

@ -269,6 +269,9 @@ void WebTab::restoreTab(const WebTab::SavedTab &tab)
m_view->tabWidget()->setTabIcon(index, tab.icon);
m_view->tabWidget()->setTabText(index, tab.title);
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);
}
@ -343,6 +346,7 @@ void WebTab::showNotification(QWidget* notif)
void WebTab::slotRestore()
{
p_restoreTab(m_savedTab);
m_view->tabWidget()->tabBar()->setTabTextColor(tabIndex(), QColor(0, 0, 0));
m_savedTab.clear();
}

Loading…
Cancel
Save