Fix cross-compile for windows

This commit is contained in:
Jonas Kvinge
2019-07-24 19:34:33 +02:00
parent af3bd6ec2f
commit 6f3bc74db0

View File

@@ -250,7 +250,9 @@ void Application::Exit() {
wait_for_exit_ << collection() wait_for_exit_ << collection()
<< playlist_backend() << playlist_backend()
#ifndef Q_OS_WIN
<< device_manager() << device_manager()
#endif
<< internet_services(); << internet_services();
connect(collection(), SIGNAL(ExitFinished()), this, SLOT(ExitReceived())); connect(collection(), SIGNAL(ExitFinished()), this, SLOT(ExitReceived()));
@@ -259,8 +261,10 @@ void Application::Exit() {
connect(playlist_backend(), SIGNAL(ExitFinished()), this, SLOT(ExitReceived())); connect(playlist_backend(), SIGNAL(ExitFinished()), this, SLOT(ExitReceived()));
playlist_backend()->ExitAsync(); playlist_backend()->ExitAsync();
#ifndef Q_OS_WIN
connect(device_manager(), SIGNAL(ExitFinished()), this, SLOT(ExitReceived())); connect(device_manager(), SIGNAL(ExitFinished()), this, SLOT(ExitReceived()));
device_manager()->Exit(); device_manager()->Exit();
#endif
connect(internet_services(), SIGNAL(ExitFinished()), this, SLOT(ExitReceived())); connect(internet_services(), SIGNAL(ExitFinished()), this, SLOT(ExitReceived()));
internet_services()->Exit(); internet_services()->Exit();