aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt/io_graph_dialog.cpp
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2018-10-05 19:54:59 +0200
committerAnders Broman <a.broman58@gmail.com>2018-10-06 06:09:31 +0000
commitaf392b873a61d41c57b241d5b680a0335c22665b (patch)
treebc096a728a51592b40cba9ea33b24c24496c9267 /ui/qt/io_graph_dialog.cpp
parentf710f21833e45ed34f23dc9eb66dd6e3e09ead5e (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.cpp5
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 {