Fix warning in retroshare-gui JSON API page

This commit is contained in:
Gioacchino Mazzurco 2019-02-05 14:54:15 +01:00
parent b46fb73f20
commit 4b953a3d76
No known key found for this signature in database
GPG Key ID: A1FBCA3872E87051

View File

@ -54,7 +54,7 @@ bool JsonApiPage::updateParams(QString &errmsg)
changed = true;
}
uint16_t port = ui.portSpinBox->value();
uint16_t port = static_cast<uint16_t>(ui.portSpinBox->value());
if(port != Settings->getJsonApiPort())
{
Settings->setJsonApiPort(port);