Safely close database connections and delete backends

Also fix NewClosure leak caused by disconnected object signals
This commit is contained in:
Jonas Kvinge
2019-07-24 19:16:51 +02:00
parent bd78e8c275
commit b5eb13449b
47 changed files with 490 additions and 53 deletions

View File

@@ -61,6 +61,7 @@ class TidalService : public InternetService {
static const Song::Source kSource;
void Exit();
void ReloadSettings();
void Logout();
@@ -132,6 +133,7 @@ class TidalService : public InternetService {
void ResetSongsRequest();
private slots:
void ExitReceived();
void StartAuthorisation();
void AuthorisationUrlReceived(const QUrl &url);
void HandleLoginSSLErrors(QList<QSslError> ssl_errors);
@@ -245,6 +247,8 @@ class TidalService : public InternetService {
QStringList login_errors_;
QList<QObject*> wait_for_exit_;
};
#endif // TIDALSERVICE_H