Fix ClearAllStats with View Reserved Ports Only

This commit is contained in:
Srivats P 2019-07-04 19:00:13 +05:30
parent 5e565167f2
commit 98378b52e6

View File

@ -289,6 +289,11 @@ void PortStatsWindow::on_tbClearAll_clicked()
}
}
if (proxyStatsModel) {
for(QModelIndex &index : shownColumns)
index = proxyStatsModel->mapToSource(index);
}
// Get ports corresponding to the shown columns
model->portListFromIndex(shownColumns, portList);