mirror of
https://github.com/YACReader/yacreader
synced 2025-07-23 23:44:52 -04:00
corregido bug que causaba que no se generase el c?digo QR si s?lo se encontraba una direcci?n IP
This commit is contained in:
@ -223,11 +223,18 @@ void ServerConfigDialog::generateQR()
|
||||
}
|
||||
}
|
||||
#endif
|
||||
if(otherAddresses.length()>0)
|
||||
if(otherAddresses.length()>0 || !dir.isEmpty())
|
||||
{
|
||||
generateQR(dir+":"+s->getPort());
|
||||
if(!dir.isEmpty())
|
||||
ip->addItem(dir);
|
||||
{
|
||||
generateQR(dir+":"+s->getPort());
|
||||
|
||||
ip->addItem(dir);
|
||||
}
|
||||
else
|
||||
{
|
||||
generateQR(otherAddresses.first()+":"+s->getPort());
|
||||
}
|
||||
ip->addItems(otherAddresses);
|
||||
port->setText(s->getPort());
|
||||
}
|
||||
|
Reference in New Issue
Block a user