diff --git a/src/lib/webtab/searchtoolbar.cpp b/src/lib/webtab/searchtoolbar.cpp index 8168632ad..d233fc805 100644 --- a/src/lib/webtab/searchtoolbar.cpp +++ b/src/lib/webtab/searchtoolbar.cpp @@ -113,7 +113,11 @@ void SearchToolBar::caseSensitivityChanged() void SearchToolBar::searchText(const QString &text) { - m_view->findText(text, m_findFlags, [this](bool found) { + QPointer guard = this; + m_view->findText(text, m_findFlags, [=](bool found) { + if (!guard) { + return; + } if (ui->lineEdit->text().isEmpty()) found = true;