diff --git a/src/app/mainapplication.cpp b/src/app/mainapplication.cpp index 790633501..0ac2c0bf9 100644 --- a/src/app/mainapplication.cpp +++ b/src/app/mainapplication.cpp @@ -223,7 +223,7 @@ void MainApplication::receiveAppMessage(QString message) } QupZilla* actWin = getWindow(); - if (!actWin) { // It can only occur if download manager window was still open + if (!actWin && !isClosing()) { // It can only occur if download manager window was still open makeNewWindow(true); return; } diff --git a/src/webview/webview.cpp b/src/webview/webview.cpp index 16c87e4ff..a1e069050 100644 --- a/src/webview/webview.cpp +++ b/src/webview/webview.cpp @@ -59,6 +59,7 @@ WebView::WebView(QupZilla* mainClass, QWidget* parent) connect(this, SIGNAL(linkClicked(QUrl)), this, SLOT(linkClicked(QUrl))); connect(this, SIGNAL(urlChanged(QUrl)), this, SLOT(urlChanged(QUrl))); connect(this, SIGNAL(titleChanged(QString)), this, SLOT(titleChanged())); + connect(this, SIGNAL(iconChanged()), this, SLOT(slotIconChanged())); connect(this, SIGNAL(statusBarMessage(QString)), p_QupZilla->statusBar(), SLOT(showMessage(QString))); @@ -73,6 +74,12 @@ WebView::WebView(QupZilla* mainClass, QWidget* parent) m_zoomLevels << 30 << 50 << 67 << 80 << 90 << 100 << 110 << 120 << 133 << 150 << 170 << 200 << 240 << 300; } +void WebView::slotIconChanged() +{ + if (!isLoading()) + qDebug() << "icon changed"; +} + WebPage* WebView::webPage() const { return m_page; diff --git a/src/webview/webview.h b/src/webview/webview.h index b4e25d7e0..8d491cdc1 100644 --- a/src/webview/webview.h +++ b/src/webview/webview.h @@ -99,6 +99,7 @@ private slots: void stopAnimation(); void setIp(QHostInfo info); void checkRss(); + void slotIconChanged(); private: void keyPressEvent(QKeyEvent* event);