mirror of
https://github.com/YACReader/yacreader
synced 2025-07-21 22:44:56 -04:00
fixed wrong code sent in previous commit (ip heuristic sorting)
This commit is contained in:
@ -249,10 +249,13 @@ void ServerConfigDialog::generateQR()
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
stl::sort(otherAddresses.begin(),otherAddresses.end(),ipComparator);
|
std::sort(otherAddresses.begin(),otherAddresses.end(),ipComparator);
|
||||||
|
|
||||||
if(otherAddresses.length()>0)
|
if(!otherAddresses.isEmpty())
|
||||||
dir = otherAddresses.pop_front();
|
{
|
||||||
|
dir = otherAddresses.first();
|
||||||
|
otherAddresses.pop_front();
|
||||||
|
}
|
||||||
|
|
||||||
if(otherAddresses.length()>0 || !dir.isEmpty())
|
if(otherAddresses.length()>0 || !dir.isEmpty())
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user