1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-12 00:54:20 +02:00

* Fix headless mode.

This commit is contained in:
Christian Muehlhaeuser
2010-10-22 02:38:00 +02:00
parent 2f14b4f753
commit 4c5e09a587

View File

@@ -1,10 +1,11 @@
#include "tomahawk/tomahawkapp.h"
#include "tomahawksettings.h"
#ifndef TOMAHAWK_HEADLESS
#include <QDesktopServices>
#include "settingsdialog.h"
#endif
#include <QDesktopServices>
#include <QDir>
#include <QDebug>
@@ -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();