forked from qt-creator/qt-creator
Get rid of ifdefs for crash handler in main.cpp.
Adapt the *.pro and *.qbp files to build unconditionally since the ifdefs are already inlined in the functions. Change-Id: I492f39600222a6174d4e16546bfa5a289965e8cb Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
This commit is contained in:
@@ -229,9 +229,7 @@ int main(int argc, char **argv)
|
||||
const int threadCount = QThreadPool::globalInstance()->maxThreadCount();
|
||||
QThreadPool::globalInstance()->setMaxThreadCount(qMax(4, 2 * threadCount));
|
||||
|
||||
#if defined(Q_OS_LINUX) && !defined(QT_NO_DEBUG)
|
||||
setupCrashHandler(); // Display a backtrace once a serious signal is delivered.
|
||||
#endif
|
||||
|
||||
#ifdef ENABLE_QT_BREAKPAD
|
||||
QtSystemExceptionHandler systemExceptionHandler;
|
||||
@@ -438,8 +436,6 @@ int main(int argc, char **argv)
|
||||
#endif
|
||||
|
||||
const int r = app.exec();
|
||||
#if defined(Q_OS_LINUX) && !defined(QT_NO_DEBUG)
|
||||
cleanupCrashHandler();
|
||||
#endif
|
||||
return r;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user