summaryrefslogtreecommitdiff
path: root/src/websnap.cpp
diff options
context:
space:
mode:
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();
+ }
}