From bd0fffa0637e1ee2f28edbe887230f5bf4adc3bc Mon Sep 17 00:00:00 2001 From: Berkus Decker Date: Wed, 22 Feb 2017 19:54:58 +0200 Subject: [PATCH] Turn off OSX crashpad --- Telegram/SourceFiles/logs.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Telegram/SourceFiles/logs.cpp b/Telegram/SourceFiles/logs.cpp index d916756c8..50861ece2 100644 --- a/Telegram/SourceFiles/logs.cpp +++ b/Telegram/SourceFiles/logs.cpp @@ -40,9 +40,9 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org #include #ifdef MAC_USE_BREAKPAD -#include "client/mac/handler/exception_handler.h" +//#include "client/mac/handler/exception_handler.h" #else // MAC_USE_BREAKPAD -#include "client/crashpad_client.h" +//#include "client/crashpad_client.h" #endif // else for MAC_USE_BREAKPAD #elif defined Q_OS_LINUX64 || defined Q_OS_LINUX32 // Q_OS_MAC @@ -985,17 +985,17 @@ namespace internal { #endif // !_DEBUG internal::SetSignalHandlers = false; #else // MAC_USE_BREAKPAD - crashpad::CrashpadClient crashpad_client; + //crashpad::CrashpadClient crashpad_client; std::string handler = (cExeDir() + cExeName() + qsl("/Contents/Helpers/crashpad_handler")).toUtf8().constData(); std::string database = QFile::encodeName(dumpspath).constData(); - if (crashpad_client.StartHandler(base::FilePath(handler), + /*if (crashpad_client.StartHandler(base::FilePath(handler), base::FilePath(database), std::string(), ProcessAnnotations, std::vector(), false)) { crashpad_client.UseHandler(); - } + }*/ #endif // else for MAC_USE_BREAKPAD #elif defined Q_OS_LINUX64 || defined Q_OS_LINUX32 internal::BreakpadExceptionHandler = new google_breakpad::ExceptionHandler(