Commit 69330b0b authored by Igor Kushnir's avatar Igor Kushnir
Browse files

Default Save report extension: kcrash.txt => kcrash

*.kcrash files are highlighted as "GDB Backtrace" in Kate and other
applications that use KSyntaxHighlighting:
https://commits.kde.org/syntax-highlighting?path=data/syntax/gdb-bt.xml

This commit reverts a temporary workaround
http://commits.kde.org/kde-runtime/c4a72e847f4d3461f76205a0b732648d752063b8
The worked around Bug 209041 was fixed some time ago.
parent 7d2cfbe4
......@@ -172,7 +172,7 @@ QString getSuggestedKCrashFilename(const CrashedApplication* app)
{
QString filename = app->fakeExecutableBaseName() + QLatin1Char('-') +
app->datetime().toString(QStringLiteral("yyyyMMdd-hhmmss")) +
QStringLiteral(".kcrash.txt");
QStringLiteral(".kcrash");
if (filename.contains(QLatin1Char('/'))) {
filename = filename.mid(filename.lastIndexOf(QLatin1Char('/')) + 1);
......
......@@ -144,7 +144,7 @@ void DrKonqi::saveReport(const QString & reportText, QWidget *parent)
{
if (isSafer()) {
QTemporaryFile tf;
tf.setFileTemplate(QStringLiteral("XXXXXX.kcrash.txt"));
tf.setFileTemplate(QStringLiteral("XXXXXX.kcrash"));
tf.setAutoRemove(false);
if (tf.open()) {
......
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