From 4c5e09a5875296398980bcd321ee816c0067c399 Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Fri, 22 Oct 2010 02:38:00 +0200 Subject: [PATCH] * Fix headless mode. --- src/tomahawksettings.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/tomahawksettings.cpp b/src/tomahawksettings.cpp index 5ee179b27..41d5e8d11 100644 --- a/src/tomahawksettings.cpp +++ b/src/tomahawksettings.cpp @@ -1,10 +1,11 @@ +#include "tomahawk/tomahawkapp.h" #include "tomahawksettings.h" #ifndef TOMAHAWK_HEADLESS + #include #include "settingsdialog.h" #endif -#include #include #include @@ -37,7 +38,7 @@ TomahawkSettings::~TomahawkSettings() QString TomahawkSettings::scannerPath() const { - #ifdef TOMAHAWK_HEADLESS + #ifndef TOMAHAWK_HEADLESS return value( "scannerpath", QDesktopServices::storageLocation( QDesktopServices::MusicLocation ) ).toString(); #else return value( "scannerpath", "" ).toString();