summaryrefslogtreecommitdiff
path: root/src/websnap.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-09-15 12:37:14 +0200
committerAndrea Diamantini <adjam7@gmail.com>2009-09-15 12:37:14 +0200
commita25e22d7b195877666237007665ce20e1358753b (patch)
tree15739fbb10cb3fb6123c46d06be8ad4a965c9872 /src/websnap.cpp
parentInitial newtab page settings implementation (diff)
downloadrekonq-a25e22d7b195877666237007665ce20e1358753b.tar.xz
Fixing state. Rekonq is not usable now, but this seems a good tech preview.
Anyway, performance is definitely a problem with this method, also loading just the first time. Looking at the other way... :)
Diffstat (limited to 'src/websnap.cpp')
-rw-r--r--src/websnap.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/websnap.cpp b/src/websnap.cpp
index 05ea17a9..1f564223 100644
--- a/src/websnap.cpp
+++ b/src/websnap.cpp
@@ -65,7 +65,6 @@ void WebSnap::saveResult(bool ok)
if (!ok)
{
kDebug() << "Error loading site..";
- emit finished();
return;
}
@@ -85,7 +84,8 @@ void WebSnap::saveResult(bool ok)
m_image = m_image.scaled(m_targetSize, Qt::KeepAspectRatioByExpanding, Qt::SmoothTransformation);
QString path = KStandardDirs::locateLocal("cache", QString("thumbs/") + m_fileName, true);
- m_image.save( path );
-
- emit finished();
+ if( m_image.save(path) )
+ {
+ emit finished();
+ }
}