Comments from r2268.
This commit is contained in:
parent
c2c3c8145b
commit
5b909a2983
|
@ -89,7 +89,7 @@ struct StationEquality {
|
||||||
void IcecastService::ParseDirectoryFinished() {
|
void IcecastService::ParseDirectoryFinished() {
|
||||||
QFutureWatcher<QList<Station> >* watcher =
|
QFutureWatcher<QList<Station> >* watcher =
|
||||||
static_cast<QFutureWatcher<QList<Station> >*>(sender());
|
static_cast<QFutureWatcher<QList<Station> >*>(sender());
|
||||||
const QList<Station>& all_stations = watcher->result();
|
QList<Station> all_stations = watcher->result();
|
||||||
|
|
||||||
// Cluster stations by genre.
|
// Cluster stations by genre.
|
||||||
QMultiHash<QString, const Station*> genres;
|
QMultiHash<QString, const Station*> genres;
|
||||||
|
@ -100,6 +100,7 @@ void IcecastService::ParseDirectoryFinished() {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Sort genres by station count.
|
// Sort genres by station count.
|
||||||
|
// HACK: De-dupe keys.
|
||||||
QList<QString> genre_names = genres.keys().toSet().toList();
|
QList<QString> genre_names = genres.keys().toSet().toList();
|
||||||
sort(genre_names.begin(), genre_names.end(), GenreSorter<const Station*>(genres));
|
sort(genre_names.begin(), genre_names.end(), GenreSorter<const Station*>(genres));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue