Also update filter rules if there is a custom filter installed.

This is relevant if the custom filter passes through some categories to
the previous one (which might be the default one). In this case changes
to the filter rules never took effect.

Change-Id: I1a3ab569857d43621ce5df4e690c6e64e6bc7a66
Reviewed-by: Kai Koehne <kai.koehne@qt.io>
This commit is contained in:
Volker Krause 2016-04-22 11:34:07 +02:00
parent 2fe10c8dd0
commit 072f5b513e

View File

@ -359,9 +359,6 @@ void QLoggingRegistry::setApiRules(const QString &content)
*/
void QLoggingRegistry::updateRules()
{
if (categoryFilter != defaultCategoryFilter)
return;
rules = qtConfigRules + configRules + apiRules + envRules;
foreach (QLoggingCategory *cat, categories.keys())