parent
41aeb0ac80
commit
5ca6513c04
|
@ -1254,21 +1254,21 @@ void TidalRequest::FinishCheck() {
|
|||
album_covers_received_ >= album_covers_requested_
|
||||
) {
|
||||
finished_ = true;
|
||||
if (errors_.isEmpty()) {
|
||||
if (songs_.isEmpty()) {
|
||||
if (songs_.isEmpty()) {
|
||||
if (errors_.isEmpty()) {
|
||||
if (IsSearch()) {
|
||||
emit Results(query_id_, SongMap(), tr("No match."));
|
||||
}
|
||||
else {
|
||||
emit Results(query_id_, SongMap(), QString());
|
||||
emit Results(query_id_);
|
||||
}
|
||||
}
|
||||
else {
|
||||
emit Results(query_id_, songs_, QString());
|
||||
emit Results(query_id_, SongMap(), ErrorsToHTML(errors_));
|
||||
}
|
||||
}
|
||||
else {
|
||||
emit Results(query_id_, SongMap(), ErrorsToHTML(errors_));
|
||||
emit Results(query_id_);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -81,7 +81,7 @@ class TidalRequest : public TidalBaseRequest {
|
|||
signals:
|
||||
void LoginSuccess();
|
||||
void LoginFailure(QString failure_reason);
|
||||
void Results(int id, SongMap songs, QString error);
|
||||
void Results(int id, SongMap songs = SongMap(), QString error = QString());
|
||||
void UpdateStatus(int id, QString text);
|
||||
void ProgressSetMaximum(int id, int max);
|
||||
void UpdateProgress(int id, int max);
|
||||
|
|
Loading…
Reference in New Issue