From a25e22d7b195877666237007665ce20e1358753b Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Tue, 15 Sep 2009 12:37:14 +0200 Subject: 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... :) --- src/websnap.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/websnap.cpp') 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(); + } } -- cgit v1.2.1