mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -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:
parent
3a1932e8f4
commit
63789afd38
@ -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());
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user