From 413f866439f518e7a2fe43c8a7855c4f56e81034 Mon Sep 17 00:00:00 2001 From: oaq Date: Mon, 11 Nov 2024 09:31:41 +1100 Subject: [PATCH] qtapp navi-post-opt: tool tips for 5+ frequencies avoids an OOB read setting up the tool tips when NFREQ > 4. --- app/qtapp/appcmn_qt/navi_post_opt.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/qtapp/appcmn_qt/navi_post_opt.cpp b/app/qtapp/appcmn_qt/navi_post_opt.cpp index 356ed0898..a67a61ad2 100644 --- a/app/qtapp/appcmn_qt/navi_post_opt.cpp +++ b/app/qtapp/appcmn_qt/navi_post_opt.cpp @@ -182,10 +182,10 @@ OptDialog::OptDialog(QWidget *parent, int opts) textViewer = new TextViewer(this); freqDialog = new FreqDialog(this); - QStringList freq_tooltips = {tr("Single Frequency"), - tr("L1 and L2 Dual-Frequency"), + QStringList freq_tooltips = {tr("Single Frequency"), tr("L1 and L2 Dual-Frequency"), tr("L1, L2 and L5 Triple-Frequency"), - tr("Experimental, not fully supported")}; + tr("Four-Frequency"), tr("Five-Frequency"), tr("Six-Frequency"), + tr("Seven-Frequency")}; for (int i = 0; i < NFREQ; i++) { label = label + (i > 0 ? "+" : "") + QString("L%1").arg(freq[i]);