Do not accept empty values for the server port in the server settings dialog

This commit is contained in:
Luis Ángel San Martín
2023-04-08 12:31:15 +02:00
parent e5026c02ea
commit 1a0b9da8d7
2 changed files with 6 additions and 1 deletions

View File

@ -58,6 +58,10 @@ ServerConfigDialog::ServerConfigDialog(QWidget *parent)
port = new QLineEdit("8080", this);
port->setReadOnly(false);
connect(port, &QLineEdit::textChanged, this, [=](const QString &portValue) {
accept->setEnabled(!portValue.isEmpty());
});
// port->setFixedWidth(100);
// port->move(332, 244);