diff options
Diffstat (limited to 'src/widgets')
-rw-r--r-- | src/widgets/webviewtabbar.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/widgets/webviewtabbar.cpp b/src/widgets/webviewtabbar.cpp index 59e5c69..efc8fef 100644 --- a/src/widgets/webviewtabbar.cpp +++ b/src/widgets/webviewtabbar.cpp @@ -23,6 +23,10 @@ int WebViewTabBar::addTab(QWebEngineView *view) int index = m_views.indexOf(view); setTabText(index, title); }); + connect(view, &QWebEngineView::iconChanged, [this, view](const QIcon &icon) { + int index = m_views.indexOf(view); + setTabIcon(index, icon); + }); return QTabBar::addTab("New Tab"); } |