From 66ed853d6f61c286e20b10af8a080f3f4f8440f1 Mon Sep 17 00:00:00 2001 From: Ladislav Foldyna Date: Fri, 10 Jan 2025 08:27:20 +0100 Subject: [PATCH] Settings: Removed COM port mask under Windows --- ui/EditLine.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ui/EditLine.cpp b/ui/EditLine.cpp index 8ab7c12d..84a33ddb 100644 --- a/ui/EditLine.cpp +++ b/ui/EditLine.cpp @@ -87,8 +87,9 @@ SerialPortEditLine::SerialPortEditLine(QWidget *parent) : QLineEdit(parent) { #if defined(Q_OS_WIN) - setInputMask("COM000"); - + // setInputMask("COM000"); // temporarily removed - it does not work in a user-friendly + // because when you click, the cursor can reach the end + // and in that case the mask does not work correctly. QStringList portNames; const QList &ports = QSerialPortInfo::availablePorts();