mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -04:00
Do not accept empty values for the server port in the server settings dialog
This commit is contained in:
parent
e5026c02ea
commit
1a0b9da8d7
@ -7,7 +7,8 @@ Version counting is based on semantic versioning (Major.Feature.Patch)
|
|||||||
### YACReaderLibrary
|
### YACReaderLibrary
|
||||||
* Fix scroll in grid views when using Qt6 builds.
|
* Fix scroll in grid views when using Qt6 builds.
|
||||||
* Fix deleting metadata from comics also deleted the number of pages info.
|
* 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
|
### Server
|
||||||
* New search API that exposes the search engine.
|
* New search API that exposes the search engine.
|
||||||
|
@ -58,6 +58,10 @@ ServerConfigDialog::ServerConfigDialog(QWidget *parent)
|
|||||||
|
|
||||||
port = new QLineEdit("8080", this);
|
port = new QLineEdit("8080", this);
|
||||||
port->setReadOnly(false);
|
port->setReadOnly(false);
|
||||||
|
|
||||||
|
connect(port, &QLineEdit::textChanged, this, [=](const QString &portValue) {
|
||||||
|
accept->setEnabled(!portValue.isEmpty());
|
||||||
|
});
|
||||||
// port->setFixedWidth(100);
|
// port->setFixedWidth(100);
|
||||||
// port->move(332, 244);
|
// port->move(332, 244);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user