diff options
author | Gerald Combs <gerald@wireshark.org> | 2013-11-12 01:39:44 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2013-11-12 01:39:44 +0000 |
commit | dc93a4b448f293d1a3d0b8426b12baaa008bab13 (patch) | |
tree | 087131f2454c90f3d687b429a76c7e7b68634946 /ui | |
parent | fc93c3a7c0dce5714b8e5488b4bf21ea1eaa2f03 (diff) |
Redraw the diagram when needed.
svn path=/trunk/; revision=53264
Diffstat (limited to 'ui')
-rw-r--r-- | ui/qt/sequence_dialog.cpp | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/ui/qt/sequence_dialog.cpp b/ui/qt/sequence_dialog.cpp index d08b819c5a..99e3b2ac6a 100644 --- a/ui/qt/sequence_dialog.cpp +++ b/ui/qt/sequence_dialog.cpp @@ -94,18 +94,13 @@ SequenceDialog::SequenceDialog(QWidget *parent, capture_file *cf, SequenceType t memset (&seq_analysis_, 0, sizeof(seq_analysis_)); - ui->showComboBox->blockSignals(true); ui->showComboBox->setCurrentIndex(0); - ui->showComboBox->blockSignals(false); - ui->addressComboBox->blockSignals(true); ui->addressComboBox->setCurrentIndex(0); - ui->addressComboBox->blockSignals(false); QComboBox *fcb = ui->flowComboBox; fcb->addItem(ui->actionFlowAny->text(), SEQ_ANALYSIS_ANY); fcb->addItem(ui->actionFlowTcp->text(), SEQ_ANALYSIS_TCP); - ui->flowComboBox->blockSignals(true); switch (type) { case any: seq_analysis_.type = SEQ_ANALYSIS_ANY; @@ -121,7 +116,6 @@ SequenceDialog::SequenceDialog(QWidget *parent, capture_file *cf, SequenceType t ui->flowLabel->hide(); break; } - ui->flowComboBox->blockSignals(false); seq_analysis_.all_packets = TRUE; QPushButton *save_bt = ui->buttonBox->button(QDialogButtonBox::Save); @@ -430,16 +424,14 @@ void SequenceDialog::on_showComboBox_currentIndexChanged(int index) } else { seq_analysis_.all_packets = FALSE; } - -// if (isVisible()) fillDiagram(); + if (isVisible()) fillDiagram(); } void SequenceDialog::on_flowComboBox_currentIndexChanged(int index) { if (index < 0) return; seq_analysis_.type = static_cast<seq_analysis_type>(ui->flowComboBox->itemData(index).toInt()); - -// if (isVisible()) fillDiagram(); + if (isVisible()) fillDiagram(); } void SequenceDialog::on_addressComboBox_currentIndexChanged(int index) @@ -449,8 +441,7 @@ void SequenceDialog::on_addressComboBox_currentIndexChanged(int index) } else { seq_analysis_.any_addr = FALSE; } - - // if (isVisible()) fillDiagram(); + if (isVisible()) fillDiagram(); } void SequenceDialog::on_actionReset_triggered() |