From 9b052985e26c8c60f9fa582d35834333e51b7339 Mon Sep 17 00:00:00 2001 From: ConfuSomu Date: Sat, 21 Jan 2023 20:04:23 -0500 Subject: Display selected search result in detailed view --- src/mainwindow.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/mainwindow.cpp') diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 28af716..3ebc725 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -116,6 +116,7 @@ void MainWindow::on_buttonSearch_clicked() { if (not matches.isEmpty()) { ui->listWidget->scrollToItem(matches[selected_match], QAbstractItemView::EnsureVisible); ui->listWidget->setCurrentItem(matches[selected_match]); + on_listWidget_itemActivated(matches[selected_match]); } } -- cgit v1.2.3-54-g00ecf