forked from osmocom/wireshark
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>
This commit is contained in:
parent
f710f21833
commit
af392b873a
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue