Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

qtapp navi-post-opt: tool tips for 5+ frequencies #522

Open
wants to merge 1 commit into
base: demo5
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
qtapp navi-post-opt: tool tips for 5+ frequencies
avoids an OOB read setting up the tool tips when NFREQ > 4.
  • Loading branch information
ourairquality committed Nov 10, 2024
commit 413f866439f518e7a2fe43c8a7855c4f56e81034
6 changes: 3 additions & 3 deletions app/qtapp/appcmn_qt/navi_post_opt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand Down