From f9fa6ca401898fde0b6a79decf519c71bd172a67 Mon Sep 17 00:00:00 2001 From: Mark Liversedge Date: Tue, 17 Aug 2021 19:36:23 +0100 Subject: [PATCH] Overview Data Table Sort incl. Files .. when sorting the table we sorted all the columns that are visible to the user, but not the associated filenames that are used by clickthru, so clickthru would jump to the wrong activity. --- src/Charts/OverviewItems.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/Charts/OverviewItems.cpp b/src/Charts/OverviewItems.cpp index 266ccbe76..3e2dc7282 100644 --- a/src/Charts/OverviewItems.cpp +++ b/src/Charts/OverviewItems.cpp @@ -1147,6 +1147,17 @@ DataOverviewItem::sort(int column, Qt::SortOrder order) // phew! values = ordered; + // don't forget the filenames used in clickthru + if (files.count()) { + QVector newfiles = files; + + // resequence + for(int k=0; k