Fix port number format in KDE builds

This commit is contained in:
craig.p.drummond
2014-03-14 19:09:20 +00:00
committed by craig.p.drummond
parent e642853b51
commit c80751e82a

View File

@@ -192,7 +192,7 @@ QString MPDConnectionDetails::description() const
if (hostname.startsWith('/')) {
return i18nc("name (host)", "\"%1\"", getName());
} else {
return i18nc("name (host:port)", "\"%1\" (%2:%3)", getName(), hostname, port);
return i18nc("name (host:port)", "\"%1\" (%2:%3)", getName(), hostname, QString::number(port)); // USe QString::number to prevent KDE's i18n converting 6600 to 6,600!
}
}