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

@ -7,7 +7,8 @@ Version counting is based on semantic versioning (Major.Feature.Patch)
### YACReaderLibrary
* Fix scroll in grid views when using Qt6 builds.
* Fix deleting metadata from comics also deleted the number of pages info.
* Use https://github.com/nayuki/QR-Code-generator instead of libqrencode for QR code generation
* Use https://github.com/nayuki/QR-Code-generator instead of libqrencode for QR code generation.
* Do not accept empty values for the server port in the server settings dialog.
### Server
* New search API that exposes the search engine.

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);