Qt Follow window: keep data representation when switching between streams
authorPascal Quantin <pascal.quantin@gmail.com>
Sun, 28 Dec 2014 15:35:57 +0000 (16:35 +0100)
committerGerald Combs <gerald@wireshark.org>
Sun, 28 Dec 2014 18:17:43 +0000 (18:17 +0000)
Change-Id: I1c7092d33d841e80ce110224f3bd617cb112be61
Reviewed-on: https://code.wireshark.org/review/6091
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
Reviewed-by: Gerald Combs <gerald@wireshark.org>
ui/qt/follow_stream_dialog.cpp

index 4cebbe431494516af38e9198e0f5e17fadf877dc..13c8f47d6b2fac41da2ed3c2633c1b30088ab5e2 100644 (file)
@@ -78,6 +78,9 @@ FollowStreamDialog::FollowStreamDialog(QWidget *parent, follow_type_t type, capt
 
     setAttribute(Qt::WA_DeleteOnClose, true);
     memset(&follow_info_, 0, sizeof(follow_info_));
+    follow_info_.show_type = SHOW_ASCII;
+    follow_info_.show_stream = BOTH_HOSTS;
+
 
     ui->teStreamContent->installEventFilter(this);
 
@@ -521,9 +524,6 @@ FollowStreamDialog::followStream()
 {
     follow_stats_t stats;
 
-    follow_info_.show_type = SHOW_ASCII;
-    follow_info_.show_stream = BOTH_HOSTS;
-
     /* Stream to show */
     follow_stats(&stats);