From 269ffb350803f8afff0616485e052f213f755315 Mon Sep 17 00:00:00 2001 From: Jeff Mitchell Date: Tue, 19 Jun 2012 16:48:22 -0400 Subject: [PATCH] Set crash reporter inactive in headless mode --- src/main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 9b360299d..73be2e9ba 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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