From 98378b52e6f7f5503c39d462e166c6c30c31efca Mon Sep 17 00:00:00 2001 From: Srivats P Date: Thu, 4 Jul 2019 19:00:13 +0530 Subject: [PATCH] Fix ClearAllStats with View Reserved Ports Only --- client/portstatswindow.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/client/portstatswindow.cpp b/client/portstatswindow.cpp index aff6a83..4662df2 100644 --- a/client/portstatswindow.cpp +++ b/client/portstatswindow.cpp @@ -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);