Commit 303c7cb5 authored by David Edmundson's avatar David Edmundson Committed by Nicolas Fella

Don't list coredump files

These fill up the menu very quickly, but aren't really viewable in
ksystemlog in a readable way.
parent 82612c9d
......@@ -377,7 +377,11 @@ QStringList JournaldLocalAnalyzer::getUniqueFieldValues(const QString &id, int f
if (res == 0) {
SD_JOURNAL_FOREACH_UNIQUE(journal, data, length)
{
units.append(QString::fromUtf8((const char *)data, length).section(QChar::fromLatin1('='), 1));
const QString unit = QString::fromUtf8((const char *)data, length).section(QChar::fromLatin1('='), 1);
if (unit.startsWith(QLatin1String("systemd-coredump@"))) {
continue; // these never contain any log information, and can easily fill up menu
}
units.append(unit);
}
}
......
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