Commit 600a996b authored by Christoph Cullmann's avatar Christoph Cullmann 🐮
Browse files

install filter only once, else we will recurse

parent 0583d47f
Pipeline #196454 passed with stage
in 20 minutes and 56 seconds
......@@ -74,8 +74,10 @@ LSPClientPlugin::LSPClientPlugin(QObject *parent, const QList<QVariant> &)
// ensure settings path exist, for e.g. local settings.json
QDir().mkpath(m_settingsPath);
// ensure we don't spam the user with debug messages per default
oldCategoryFilter = QLoggingCategory::installFilter(myCategoryFilter);
// ensure we don't spam the user with debug messages per default, do this just once
if (!oldCategoryFilter) {
oldCategoryFilter = QLoggingCategory::installFilter(myCategoryFilter);
}
// apply our config
readConfig();
......
Supports Markdown
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