diff options
Diffstat (limited to 'src/webicon.cpp')
-rw-r--r-- | src/webicon.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/webicon.cpp b/src/webicon.cpp index 98b88a5c..58f8fcfb 100644 --- a/src/webicon.cpp +++ b/src/webicon.cpp @@ -26,7 +26,6 @@ // Self Includes #include "webicon.h" -#include "webicon.moc" // Local Includes #include "application.h" @@ -35,7 +34,6 @@ // Qt Includes #include <QtCore/QTimer> #include <QtWebKit/QWebFrame> -#include <QtWebKit/QWebSettings> WebIcon::WebIcon(const KUrl& url, QObject *parent) @@ -45,7 +43,7 @@ WebIcon::WebIcon(const KUrl& url, QObject *parent) m_page.settings()->setAttribute(QWebSettings::PluginsEnabled, false); m_page.settings()->setAttribute(QWebSettings::JavascriptEnabled, false); m_page.settings()->setAttribute(QWebSettings::PrivateBrowsingEnabled, true); - + connect(&m_page, SIGNAL(loadFinished(bool)), this, SLOT(saveIcon(bool))); QTimer::singleShot(0, this, SLOT(load())); } @@ -66,6 +64,6 @@ void WebIcon::saveIcon(bool b) { if(b) Application::iconManager()->provideIcon(&m_page, m_url, false); - + this->deleteLater(); } |