mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-07 06:36:55 +02:00
Set crash reporter inactive in headless mode
This commit is contained in:
@@ -22,6 +22,7 @@
|
|||||||
#include "thirdparty/kdsingleapplicationguard/kdsingleapplicationguard.h"
|
#include "thirdparty/kdsingleapplicationguard/kdsingleapplicationguard.h"
|
||||||
#include "UbuntuUnityHack.h"
|
#include "UbuntuUnityHack.h"
|
||||||
#include "TomahawkSettings.h"
|
#include "TomahawkSettings.h"
|
||||||
|
#include "utils/TomahawkUtils.h"
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include "utils/Logger.h"
|
#include "utils/Logger.h"
|
||||||
|
|
||||||
@@ -149,7 +150,7 @@ main( int argc, char *argv[] )
|
|||||||
|
|
||||||
#ifndef ENABLE_HEADLESSs
|
#ifndef ENABLE_HEADLESSs
|
||||||
#ifdef WITH_BREAKPAD
|
#ifdef WITH_BREAKPAD
|
||||||
new BreakPad( QDir::tempPath(), TomahawkSettings::instance()->crashReporterEnabled() );
|
new BreakPad( QDir::tempPath(), TomahawkSettings::instance()->crashReporterEnabled() && !TomahawkUtils::headless() );
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user