Fix building without spotify support.

This commit is contained in:
John Maguire 2011-08-10 13:44:55 +02:00
parent 0b795841d5
commit 369650dbef
1 changed files with 7 additions and 1 deletions

View File

@ -1,11 +1,15 @@
#include "songresolver.h"
#include "config.h"
#include "core/logging.h"
#include "core/song.h"
#include "internet/internetmodel.h"
#include "internet/spotifyservice.h"
#include "libraryresolver.h"
#ifdef HAVE_SPOTIFY
#include "internet/spotifyservice.h"
#include "spotifyresolver.h"
#endif
SongResolver::SongResolver(LibraryBackendInterface* library, QObject* parent)
: QObject(parent),
@ -14,7 +18,9 @@ SongResolver::SongResolver(LibraryBackendInterface* library, QObject* parent)
resolved_(false) {
// Register in the order they should be checked.
RegisterResolver(new LibraryResolver(library));
#ifdef HAVE_SPOTIFY
RegisterResolver(new SpotifyResolver(InternetModel::Service<SpotifyService>()->server()));
#endif
}
SongResolver::~SongResolver() {