mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2025-05-23 18:02:29 -04:00
Limit free text message to 13 characters for old-style Fox mode.
This commit is contained in:
parent
37f5abc35c
commit
bf242d03e5
@ -10236,8 +10236,13 @@ void MainWindow::on_pbFoxReset_clicked()
|
|||||||
void MainWindow::on_pbFreeText_clicked()
|
void MainWindow::on_pbFreeText_clicked()
|
||||||
{
|
{
|
||||||
bool ok;
|
bool ok;
|
||||||
|
if(m_config.superFox()) {
|
||||||
m_freeTextMsg = QInputDialog::getText (this, tr("Free Text Message"),
|
m_freeTextMsg = QInputDialog::getText (this, tr("Free Text Message"),
|
||||||
tr("Message:"), QLineEdit::Normal, m_freeTextMsg0, &ok).left(26);
|
tr("Message:"), QLineEdit::Normal, m_freeTextMsg0, &ok).left(26);
|
||||||
|
} else {
|
||||||
|
m_freeTextMsg = QInputDialog::getText (this, tr("Free Text Message"),
|
||||||
|
tr("Message:"), QLineEdit::Normal, m_freeTextMsg0, &ok).left(13);
|
||||||
|
}
|
||||||
if(ok) {
|
if(ok) {
|
||||||
m_freeTextMsg=m_freeTextMsg.toUpper();
|
m_freeTextMsg=m_freeTextMsg.toUpper();
|
||||||
m_freeTextMsg0=m_freeTextMsg;
|
m_freeTextMsg0=m_freeTextMsg;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user