This commit is contained in:
Luis Ángel San Martín 2015-03-18 18:46:19 +01:00
parent 1db8d270e0
commit 366f880fde

View File

@ -249,10 +249,13 @@ void ServerConfigDialog::generateQR()
}
#endif
stl::sort(otherAddresses.begin(),otherAddresses.end(),ipComparator);
std::sort(otherAddresses.begin(),otherAddresses.end(),ipComparator);
if(otherAddresses.length()>0)
dir = otherAddresses.pop_front();
if(!otherAddresses.isEmpty())
{
dir = otherAddresses.first();
otherAddresses.pop_front();
}
if(otherAddresses.length()>0 || !dir.isEmpty())
{