Qt: clear Go To Packet text box when opening it

Most of the time you intend to go to a new packet, not to go to the previously selected one.
This makes it consistent with all the editors I have used so far.

Change-Id: Ib0cde3c8361a8c3103dd05d622eaba4ee7deab78
Reviewed-on: https://code.wireshark.org/review/8772
Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
This commit is contained in:
Pascal Quantin 2015-06-05 10:06:16 +02:00
parent 1ec868eddd
commit ab6108cbdf
1 changed files with 1 additions and 0 deletions

View File

@ -2904,6 +2904,7 @@ void MainWindow::on_actionGoGoToPacket_triggered() {
main_ui_->goToFrame->animatedHide();
} else {
main_ui_->goToFrame->animatedShow();
main_ui_->goToLineEdit->clear();
}
main_ui_->goToLineEdit->setFocus();
}