1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-20 15:59:42 +01:00

Set crash reporter inactive in headless mode

This commit is contained in:
Jeff Mitchell 2012-06-19 16:48:22 -04:00
parent c9841985a1
commit 269ffb3508

View File

@ -22,6 +22,7 @@
#include "thirdparty/kdsingleapplicationguard/kdsingleapplicationguard.h"
#include "UbuntuUnityHack.h"
#include "TomahawkSettings.h"
#include "utils/TomahawkUtils.h"
#include "config.h"
#include "utils/Logger.h"
@ -149,7 +150,7 @@ main( int argc, char *argv[] )
#ifndef ENABLE_HEADLESSs
#ifdef WITH_BREAKPAD
new BreakPad( QDir::tempPath(), TomahawkSettings::instance()->crashReporterEnabled() );
new BreakPad( QDir::tempPath(), TomahawkSettings::instance()->crashReporterEnabled() && !TomahawkUtils::headless() );
#endif
#endif