From 6f3bc74db0150694256c8b08d30e5802b50b3c79 Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Wed, 24 Jul 2019 19:34:33 +0200 Subject: [PATCH] Fix cross-compile for windows --- src/core/application.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/core/application.cpp b/src/core/application.cpp index d52dc845d..205918b78 100644 --- a/src/core/application.cpp +++ b/src/core/application.cpp @@ -250,7 +250,9 @@ void Application::Exit() { wait_for_exit_ << collection() << playlist_backend() +#ifndef Q_OS_WIN << device_manager() +#endif << internet_services(); connect(collection(), SIGNAL(ExitFinished()), this, SLOT(ExitReceived())); @@ -259,8 +261,10 @@ void Application::Exit() { connect(playlist_backend(), SIGNAL(ExitFinished()), this, SLOT(ExitReceived())); playlist_backend()->ExitAsync(); +#ifndef Q_OS_WIN connect(device_manager(), SIGNAL(ExitFinished()), this, SLOT(ExitReceived())); device_manager()->Exit(); +#endif connect(internet_services(), SIGNAL(ExitFinished()), this, SLOT(ExitReceived())); internet_services()->Exit();