diff --git a/core/document.cpp b/core/document.cpp index ceee726cb..c15cf72d0 100644 --- a/core/document.cpp +++ b/core/document.cpp @@ -1662,7 +1662,7 @@ void DocumentPrivate::doContinueDirectionMatchSearch(void *doContinueDirectionMa if ( searchStruct->currentPage >= pageCount || searchStruct->currentPage < 0 ) { const QString question = forward ? i18n("End of document reached.\nContinue from the beginning?") : i18n("Beginning of document reached.\nContinue from the bottom?"); - if ( searchStruct->noDialogs || KMessageBox::questionYesNo(m_widget, question, QString(), KStandardGuiItem::cont(), KStandardGuiItem::cancel()) == KMessageBox::Yes ) + if ( search->cachedNoDialogs || KMessageBox::questionYesNo(m_widget, question, QString(), KStandardGuiItem::cont(), KStandardGuiItem::cancel()) == KMessageBox::Yes ) searchStruct->currentPage = forward ? 0 : pageCount - 1; else doContinue = false; @@ -3360,7 +3360,6 @@ void Document::searchText( int searchID, const QString & text, bool fromStart, Q searchStruct->match = match; searchStruct->currentPage = currentPage; searchStruct->searchID = searchID; - searchStruct->noDialogs = noDialogs; searchStruct->pagesDone = pagesDone; QMetaObject::invokeMethod(this, "doContinueDirectionMatchSearch", Qt::QueuedConnection, Q_ARG(void *, searchStruct)); diff --git a/core/document_p.h b/core/document_p.h index 62b4d4e8a..e19bac581 100644 --- a/core/document_p.h +++ b/core/document_p.h @@ -71,7 +71,6 @@ struct DoContinueDirectionMatchSearchStruct RegularAreaRect *match; int currentPage; int searchID; - bool noDialogs; int pagesDone; };