mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 10:46:35 +01:00
[WebTab] Don't show "Loading.." on empty tabs
[ci skip]
This commit is contained in:
parent
4c812557f6
commit
bfcae43c21
@ -120,6 +120,7 @@ WebTab::WebTab(BrowserWindow* window)
|
|||||||
|
|
||||||
connect(m_webView, SIGNAL(showNotification(QWidget*)), this, SLOT(showNotification(QWidget*)));
|
connect(m_webView, SIGNAL(showNotification(QWidget*)), this, SLOT(showNotification(QWidget*)));
|
||||||
connect(m_webView, SIGNAL(loadStarted()), this, SLOT(loadStarted()));
|
connect(m_webView, SIGNAL(loadStarted()), this, SLOT(loadStarted()));
|
||||||
|
connect(m_webView, SIGNAL(loadFinished(bool)), this, SLOT(loadFinished()));
|
||||||
connect(m_webView, SIGNAL(titleChanged(QString)), this, SLOT(titleChanged(QString)));
|
connect(m_webView, SIGNAL(titleChanged(QString)), this, SLOT(titleChanged(QString)));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -361,6 +362,11 @@ void WebTab::loadStarted()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void WebTab::loadFinished()
|
||||||
|
{
|
||||||
|
titleChanged(m_webView->title());
|
||||||
|
}
|
||||||
|
|
||||||
void WebTab::titleChanged(const QString &title)
|
void WebTab::titleChanged(const QString &title)
|
||||||
{
|
{
|
||||||
if (!m_tabBar || !m_window || title.isEmpty()) {
|
if (!m_tabBar || !m_window || title.isEmpty()) {
|
||||||
|
@ -95,6 +95,7 @@ public:
|
|||||||
private slots:
|
private slots:
|
||||||
void showNotification(QWidget* notif);
|
void showNotification(QWidget* notif);
|
||||||
void loadStarted();
|
void loadStarted();
|
||||||
|
void loadFinished();
|
||||||
void titleChanged(const QString &title);
|
void titleChanged(const QString &title);
|
||||||
|
|
||||||
void slotRestore();
|
void slotRestore();
|
||||||
|
Loading…
Reference in New Issue
Block a user