CrashHandler: Opt-in instead of Opt-out

Enable the crash handler by defining the environment variable
QTC_USE_CRASH_HANDLER=1 (evaluated on start up).

Change-Id: Ib7f9fa016ab24a15082fbd90fd334bd4f2b17234
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
This commit is contained in:
Nikolai Kosjar
2013-05-23 16:25:12 +02:00
parent 5deb6644a4
commit 5402b8912c
2 changed files with 3 additions and 6 deletions

View File

@@ -127,10 +127,8 @@ void CrashHandlerDialog::setApplicationInfo(const QString &signalName)
const QString title = tr("%1 has closed unexpectedly (Signal \"%2\")").arg(ideName, signalName);
const QString introLabelContents = tr(
"<p><b>%1.</b></p>"
"<p>Please file a <a href='%2'>bug report</a> with the debug information provided below.</p>"
"<p>Hint: Deactivate this Crash Handler by adding QTC_NO_CRASH_HANDLER=1<br/>"
"to the environment (evaluated on startup of %3).</p>")
.arg(title, QLatin1String(URL_BUGTRACKER), ideName);
"<p>Please file a <a href='%2'>bug report</a> with the debug information provided below.</p>")
.arg(title, QLatin1String(URL_BUGTRACKER));
m_ui->introLabel->setText(introLabelContents);
setWindowTitle(title);