Skip to content

Commit

Permalink
Settings: Removed COM port mask under Windows
Browse files Browse the repository at this point in the history
foldynl committed Jan 10, 2025
1 parent 083db30 commit 66ed853
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ui/EditLine.cpp
Original file line number Diff line number Diff line change
@@ -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<QSerialPortInfo> &ports = QSerialPortInfo::availablePorts();

0 comments on commit 66ed853

Please sign in to comment.