diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/mainwindow.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 3ebc725..6ea82fd 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -118,6 +118,12 @@ void MainWindow::on_buttonSearch_clicked() { ui->listWidget->setCurrentItem(matches[selected_match]); on_listWidget_itemActivated(matches[selected_match]); } + + if (matches.size() > 0) + ui->statusbar->showMessage(tr("Search result %1 out of %2") + .arg(selected_match+1) + .arg(matches.size())); + else ui->statusbar->showMessage(tr("No search results.")); } void MainWindow::relist_statuses() { |