Fix crash when closing LyX with open Search pane

This commit is contained in:
Juergen Spitzmueller 2021-11-05 14:50:39 +01:00
parent 1e711f902a
commit a90c5f202e

View File

@ -422,7 +422,8 @@ void GuiSearchWidget::hideEvent(QHideEvent *)
dispatch(FuncRequest(LFUN_DIALOG_HIDE, "findreplace"));
view_.setFocus();
// update toolbar status
bv_->buffer().updateBuffer();
if (bv_)
bv_->buffer().updateBuffer();
}