Commit f1b35856 authored by Nikolai Kosjar's avatar Nikolai Kosjar Committed by hjk

CrashHandler: Allow to deactivate the Crash Handler

...by adding QTC_NO_CRASH_HANDLER=1 to the run environment.

This is important for nightly tests since these should be able to create
a core dump file.

Change-Id: Id858b64f00315def6b4f32de972b167a293be245
Reviewed-by: default avatarChristian Kandeler <christian.kandeler@digia.com>
Reviewed-by: default avatarhjk <hjk121@nokiamail.com>
parent 84d9069d
......@@ -127,8 +127,10 @@ 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>")
.arg(title, QLatin1String(URL_BUGTRACKER));
"<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);
m_ui->introLabel->setText(introLabelContents);
setWindowTitle(title);
......
......@@ -37,6 +37,9 @@
<property name="text">
<string>Some useful information here...</string>
</property>
<property name="textInteractionFlags">
<set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse</set>
</property>
</widget>
</item>
<item>
......
......@@ -83,6 +83,9 @@ extern "C" void signalHandler(int signal)
void setupCrashHandler()
{
#ifdef BUILD_CRASH_HANDLER
if (!qgetenv("QTC_NO_CRASH_HANDLER").isEmpty())
return;
const QString crashHandlerPath = qApp->applicationDirPath()
+ QLatin1String("/qtcreator_crash_handler");
crashHandlerPathC = qstrdup(qPrintable(crashHandlerPath));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment