aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt/packet_list.cpp
diff options
context:
space:
mode:
authorPeter Wu <peter@lekensteyn.nl>2015-03-07 17:45:00 +0100
committerAnders Broman <a.broman58@gmail.com>2015-03-12 16:33:56 +0000
commitad1b3ee110a3824e0efa52ff6ed1bfcc54261ea6 (patch)
treeae208592d89257734be11830050a7591cd19f7ab /ui/qt/packet_list.cpp
parent5ab84900881289546a0aa3beb577af5383898e2e (diff)
Qt: enable autoscroll on initial capture start
The capture timer was never enabled on capture start or disabled on capture stop. This is now implemented. Bug: 10601 Change-Id: Iae23a952986a2c5dddf92b6ac0d1f1bc1c83719c Reviewed-on: https://code.wireshark.org/review/7582 Reviewed-by: Peter Wu <peter@lekensteyn.nl> Tested-by: Peter Wu <peter@lekensteyn.nl> Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com> Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'ui/qt/packet_list.cpp')
-rw-r--r--ui/qt/packet_list.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/ui/qt/packet_list.cpp b/ui/qt/packet_list.cpp
index d24e95a1c9..160e28198f 100644
--- a/ui/qt/packet_list.cpp
+++ b/ui/qt/packet_list.cpp
@@ -685,6 +685,8 @@ void PacketList::recolorPackets()
redrawVisiblePackets();
}
+/* Enable autoscroll timer. Note: must be called after the capture is started,
+ * otherwise the timer will not be executed. */
void PacketList::setAutoScroll(bool enabled)
{
tail_at_end_ = enabled;