summaryrefslogtreecommitdiff
path: root/src/homepage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/homepage.cpp')
-rw-r--r--src/homepage.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/homepage.cpp b/src/homepage.cpp
index 1f759108..52668036 100644
--- a/src/homepage.cpp
+++ b/src/homepage.cpp
@@ -97,7 +97,15 @@ QString HomePage::speedDial()
{
QString fileName = QString("thumb") + QString::number(i) + QString(".png");
QString path = KStandardDirs::locateLocal("cache", QString("thumbs/") + fileName, true);
-
+ if( !QFile::exists(path) )
+ {
+ kDebug() << "websnap" << i << "=========================================================";
+ WebSnap *ws = new WebSnap(urls.at(i), fileName);
+
+ // we need polish being in an extant object!!
+ connect(ws, SIGNAL(finished()), Application::instance()->mainWindow()->mainView(), SLOT(polish()));
+ }
+
speed += "<div class=\"thumbnail\">";
speed += "<a href=\"" + urls.at(i) + "\">";
speed += "<img src=\"" + path + "\" width=\"200\" alt=\"" + names.at(i) + "\" />";
@@ -173,4 +181,4 @@ QString HomePage::fillRecentHistory()
return history;
-} \ No newline at end of file
+}