mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Fix most stupid thinko of mine
This commit is contained in:
parent
de637cdbcb
commit
b60853ff0d
@ -151,7 +151,7 @@ void GuiSearchWidget::keyPressEvent(QKeyEvent * ev)
|
||||
if (ev->key() == Qt::Key_Escape) {
|
||||
dispatch(FuncRequest(LFUN_DIALOG_HIDE, "findreplace"));
|
||||
view_.setFocus();
|
||||
dispatch(FuncRequest(LFUN_BUFFER_UPDATE));
|
||||
bv_->buffer().updateBuffer();
|
||||
return;
|
||||
}
|
||||
|
||||
@ -417,12 +417,12 @@ void GuiSearchWidget::showEvent(QShowEvent * e)
|
||||
}
|
||||
|
||||
|
||||
void GuiSearchWidget::hideEvent(QHideEvent * e)
|
||||
void GuiSearchWidget::hideEvent(QHideEvent *)
|
||||
{
|
||||
QWidget::hideEvent(e);
|
||||
dispatch(FuncRequest(LFUN_DIALOG_HIDE, "findreplace"));
|
||||
view_.setFocus();
|
||||
// update toolbar status
|
||||
dispatch(FuncRequest(LFUN_BUFFER_UPDATE));
|
||||
bv_->buffer().updateBuffer();
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user