From 44432d7b1c41c8585a9256e1c60e15b1cc5dd33c Mon Sep 17 00:00:00 2001 From: Joe Taylor Date: Tue, 11 Jun 2024 16:18:28 -0400 Subject: [PATCH] Trim SuperFox free text messages to 26 characters. --- widgets/mainwindow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/widgets/mainwindow.cpp b/widgets/mainwindow.cpp index afc5bc495..c03ab35cb 100644 --- a/widgets/mainwindow.cpp +++ b/widgets/mainwindow.cpp @@ -9967,8 +9967,8 @@ void MainWindow::on_pbFreeText_clicked() bool ok; static QStringList items; if(items.isEmpty()) items << "HELLO TEST 1234..." << "CALL FROM 200 to 5000 HZ"; - m_freeTextMsg = QInputDialog::getItem (this, tr("Free Text Message"), - tr("Message:"), items, 0, true, &ok); + m_freeTextMsg = QInputDialog::getItem(this, tr("Free Text Message"), + tr("Message:"), items, 0, true, &ok).left(26); if(ok) { if(!m_freeTextMsg.isEmpty()) items.append(m_freeTextMsg); m_freeTextMsg=m_freeTextMsg.toUpper();