Qt: Don't autoscroll if we're not capturing.

Change-Id: I3164d8a12981970f127cd68adb7e52f2a1fe5c39
Reviewed-on: https://code.wireshark.org/review/7457
Reviewed-by: Gerald Combs <gerald@wireshark.org>
This commit is contained in:
Gerald Combs 2015-03-01 09:18:34 -08:00 committed by Gerald Combs
parent 85c589f9d0
commit 51f45af2b8
1 changed files with 1 additions and 1 deletions

View File

@ -685,7 +685,7 @@ void PacketList::recolorPackets()
void PacketList::setAutoScroll(bool enabled)
{
tail_at_end_ = enabled;
if (enabled) {
if (enabled && capture_in_progress_) {
scrollToBottom();
if (tail_timer_id_ < 1) tail_timer_id_ = startTimer(tail_update_interval_);
} else if (tail_timer_id_ > 0) {