diff options
author | Stig Bjørlykke <stig@bjorlykke.org> | 2018-10-05 19:54:59 +0200 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2018-10-06 06:09:31 +0000 |
commit | af392b873a61d41c57b241d5b680a0335c22665b (patch) | |
tree | bc096a728a51592b40cba9ea33b24c24496c9267 /ui/qt/io_graph_dialog.cpp | |
parent | f710f21833e45ed34f23dc9eb66dd6e3e09ead5e (diff) |
Qt: Call createIOGraph() when duplicating an existing IO Graph
Call createIOGraph() when adding a new graph by duplicating
an existing to actually create the new graph.
This is a regression from g5b3e3ee5.
Change-Id: If1d8e4386a44dc4867d75fbad2d9ebb2e4b22307
Reviewed-on: https://code.wireshark.org/review/30034
Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'ui/qt/io_graph_dialog.cpp')
-rw-r--r-- | ui/qt/io_graph_dialog.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/ui/qt/io_graph_dialog.cpp b/ui/qt/io_graph_dialog.cpp index 3adf01dda7..4720c95ee4 100644 --- a/ui/qt/io_graph_dialog.cpp +++ b/ui/qt/io_graph_dialog.cpp @@ -446,9 +446,8 @@ void IOGraphDialog::addGraph(bool copy_from_current) return; } const QModelIndex &new_index = uat_model_->index(uat_model_->rowCount() - 1, 0); - if (copy_from_current) { - uat_model_->copyRow(new_index.row(), current.row()); - } + uat_model_->copyRow(new_index.row(), current.row()); + createIOGraph(new_index.row()); ui->graphUat->setCurrentIndex(new_index); } else { |