| 209 | } |
| 210 | |
| 211 | void ServerConfigDialog::updatePort() |
| 212 | { |
| 213 | QSettings *settings = new QSettings(YACReader::getSettingsPath() + "/YACReaderLibrary.ini", QSettings::IniFormat); // TODO unificar la creación del fichero de config con el servidor |
| 214 | settings->beginGroup("listener"); |
| 215 | settings->setValue("port", port->text().toInt()); |
| 216 | settings->endGroup(); |
| 217 | |
| 218 | httpServer->stop(); |
| 219 | httpServer->start(); |
| 220 | |
| 221 | generateQR(ip->currentText() + ":" + port->text()); |
| 222 | } |
nothing calls this directly
no test coverage detected