From 41a864c0bed5ea8ab3cc81c5d8ddb25dfc58d683 Mon Sep 17 00:00:00 2001 From: Vladislav Kobzar Date: Fri, 10 Nov 2017 09:19:42 -0500 Subject: [PATCH] Bible History scrolling Fixed where in the code scrolling to bottom of history is executed. Now each time a bible history item is added, it is scrolled to the bottom of history list. --- biblewidget.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/biblewidget.cpp b/biblewidget.cpp index 0b278a5..c8d6569 100644 --- a/biblewidget.cpp +++ b/biblewidget.cpp @@ -427,8 +427,6 @@ void BibleWidget::on_search_results_list_currentRowChanged(int currentRow) ui->chapter_ef->setText(search_results.at(currentRow).chapter); ui->verse_ef->setText(search_results.at(currentRow).verse); - // Scroll to latest history item - ui->history_listWidget->scrollToBottom(); } } @@ -443,6 +441,8 @@ void BibleWidget::addToHistory() BibleHistory b = getCurrentVerse(); history_items.append(b); ui->history_listWidget->addItem(b.captionLong); + // Scroll to latest history item + ui->history_listWidget->scrollToBottom(); } void BibleWidget::addToHistory(BibleHistory &b)