Qt: Hide Searchbar if the icon is activated again

Change-Id: Ic478cc29ac1e0685737580da7110ec9f5d06d313
Reviewed-on: https://code.wireshark.org/review/34950
Petri-Dish: Roland Knall <rknall@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Roland Knall <rknall@gmail.com>
This commit is contained in:
Roland Knall 2019-11-04 12:06:06 +00:00
parent a8052b9f38
commit d21078309d
1 changed files with 2 additions and 0 deletions

View File

@ -1978,6 +1978,8 @@ void MainWindow::on_actionEditFindPacket_triggered()
connect(previous_focus_, SIGNAL(destroyed()), this, SLOT(resetPreviousFocus()));
if (!main_ui_->searchFrame->isVisible()) {
showAccordionFrame(main_ui_->searchFrame, true);
} else {
main_ui_->searchFrame->animatedHide();
}
main_ui_->searchFrame->setFocus();
}