mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-02-04 23:04:41 +01:00
Qt: simplify log level filtering in log viewer
This commit is contained in:
parent
622fe1ce47
commit
3eb8fdaef4
|
|
@ -325,22 +325,17 @@ void log_viewer::filter_log()
|
|||
|
||||
const auto add_line = [this, &result, &excluded_log_levels, ×tamp_regexp, &thread_regexp](QString& line)
|
||||
{
|
||||
bool exclude_line = false;
|
||||
|
||||
for (const QString& log_level_prefix : excluded_log_levels)
|
||||
if (!line.isEmpty())
|
||||
{
|
||||
if (line.startsWith(log_level_prefix))
|
||||
for (QStringView log_level_prefix : excluded_log_levels)
|
||||
{
|
||||
exclude_line = true;
|
||||
break;
|
||||
if (line.startsWith(log_level_prefix))
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (exclude_line)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (m_filter_term.isEmpty() || line.contains(m_filter_term))
|
||||
{
|
||||
if (line.isEmpty())
|
||||
|
|
|
|||
Loading…
Reference in a new issue