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:
@@ -1,10 +1,11 @@
|
|||||||
|
#include "tomahawk/tomahawkapp.h"
|
||||||
#include "tomahawksettings.h"
|
#include "tomahawksettings.h"
|
||||||
|
|
||||||
#ifndef TOMAHAWK_HEADLESS
|
#ifndef TOMAHAWK_HEADLESS
|
||||||
|
#include <QDesktopServices>
|
||||||
#include "settingsdialog.h"
|
#include "settingsdialog.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <QDesktopServices>
|
|
||||||
#include <QDir>
|
#include <QDir>
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
|
|
||||||
@@ -37,7 +38,7 @@ TomahawkSettings::~TomahawkSettings()
|
|||||||
|
|
||||||
QString TomahawkSettings::scannerPath() const
|
QString TomahawkSettings::scannerPath() const
|
||||||
{
|
{
|
||||||
#ifdef TOMAHAWK_HEADLESS
|
#ifndef TOMAHAWK_HEADLESS
|
||||||
return value( "scannerpath", QDesktopServices::storageLocation( QDesktopServices::MusicLocation ) ).toString();
|
return value( "scannerpath", QDesktopServices::storageLocation( QDesktopServices::MusicLocation ) ).toString();
|
||||||
#else
|
#else
|
||||||
return value( "scannerpath", "" ).toString();
|
return value( "scannerpath", "" ).toString();
|
||||||
|
Reference in New Issue
Block a user