diff --git a/generators/ghostview/generator_ghostview.cpp b/generators/ghostview/generator_ghostview.cpp index 5c621fd75..ccaf7348f 100644 --- a/generators/ghostview/generator_ghostview.cpp +++ b/generators/ghostview/generator_ghostview.cpp @@ -234,6 +234,7 @@ void GSGenerator::slotPixmapGenerated(const QImage* img) syncLock.unlock(); m_sRequest->page()->setPixmap( m_sRequest->id(), new QPixmap( QPixmap::fromImage( *img ) ) ); signalRequestDone( m_sRequest ); + m_asRequest=0; } void GSGenerator::slotAsyncPixmapGenerated(QPixmap * pix) @@ -241,6 +242,7 @@ void GSGenerator::slotAsyncPixmapGenerated(QPixmap * pix) kWarning() << "SlotASyncGenerated!\n"; m_asRequest->page()->setPixmap( m_asRequest->id(), pix ); signalRequestDone( m_asRequest ); + m_asRequest=0; docLock.unlock(); }