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:
parent
85c589f9d0
commit
51f45af2b8
|
@ -685,7 +685,7 @@ void PacketList::recolorPackets()
|
||||||
void PacketList::setAutoScroll(bool enabled)
|
void PacketList::setAutoScroll(bool enabled)
|
||||||
{
|
{
|
||||||
tail_at_end_ = enabled;
|
tail_at_end_ = enabled;
|
||||||
if (enabled) {
|
if (enabled && capture_in_progress_) {
|
||||||
scrollToBottom();
|
scrollToBottom();
|
||||||
if (tail_timer_id_ < 1) tail_timer_id_ = startTimer(tail_update_interval_);
|
if (tail_timer_id_ < 1) tail_timer_id_ = startTimer(tail_update_interval_);
|
||||||
} else if (tail_timer_id_ > 0) {
|
} else if (tail_timer_id_ > 0) {
|
||||||
|
|
Loading…
Reference in New Issue