Skip to content

Commit

Permalink
Bible History scrolling
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
vladozar committed Nov 10, 2017
1 parent 607d237 commit 41a864c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions biblewidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}

Expand All @@ -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)
Expand Down

0 comments on commit 41a864c

Please sign in to comment.