mirror of
https://github.com/YACReader/yacreader
synced 2025-07-14 02:54:46 -04:00
Do not accept empty values for the server port in the server settings dialog
This commit is contained in:
@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user