diff --git a/core/document.cpp b/core/document.cpp index 10cd238c0..5264754ec 100644 --- a/core/document.cpp +++ b/core/document.cpp @@ -3400,6 +3400,10 @@ void Document::continueSearch( int searchID, SearchType type ) void Document::resetSearch( int searchID ) { + // if we are closing down, don't bother doing anything + if ( !d->m_generator ) + return; + // check if searchID is present in runningSearches QMap< int, RunningSearch * >::iterator searchIt = d->m_searches.find( searchID ); if ( searchIt == d->m_searches.end() )